1239698960
tree_magic was also used to get the mime type of uploads. We can instead use gio::content_type_guess(). We can use it here because we are handling bytes, which is what it requires.
37 lines
751 B
TOML
37 lines
751 B
TOML
[package]
|
|
authors = ["Daniel Garcia <danigm@wadobo.com>"]
|
|
name = "fractal-matrix-api"
|
|
version = "4.0.0"
|
|
workspace = "../"
|
|
edition = "2018"
|
|
|
|
description = """
|
|
Library to communicate with a Matrix.org server
|
|
"""
|
|
keywords = [
|
|
"matrix", "fractal"
|
|
]
|
|
license = "GPL-3.0"
|
|
repository = "https://gitlab.gnome.org/GNOME/fractal"
|
|
documentation = "https://gnome.pages.gitlab.gnome.org/fractal/fractal_matrix_api/index.html"
|
|
|
|
[dependencies]
|
|
directories = "1.0.2"
|
|
lazy_static = "1.2.0"
|
|
log = "0.4.6"
|
|
md5 = "0.6.1"
|
|
regex = "1.1.0"
|
|
reqwest = "0.9.5"
|
|
serde_json = "1.0.33"
|
|
time = "0.1.41"
|
|
url = "1.7.2"
|
|
urlencoding = "1.0.0"
|
|
gio = "0.5.1"
|
|
|
|
[dependencies.chrono]
|
|
version = "0.4.6"
|
|
features = ["serde"]
|
|
|
|
[dependencies.serde]
|
|
version = "1.0.82"
|
|
features = ["derive"]
|