summaryrefslogtreecommitdiffstats
path: root/Cargo.toml
blob: 3736ba91e1dcd2d5cec33ad7cf6fff9f0fb2cdb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[package]
name = "elefren"
version = "0.22.0"
description = "A wrapper around the Mastodon API."
authors = ["Aaron Power <theaaronepower@gmail.com>", "Paul Woolcock <paul@woolcock.us>"]
license = "MIT/Apache-2.0"
readme = "README.md"
repository = "https://github.com/pwoolcoc/elefren.git"
keywords = ["api", "web", "social", "mastodon", "wrapper"]
categories = ["web-programming", "web-programming::http-client", "api-bindings"]
edition = "2018"

[dependencies]
doc-comment = "0.3"
envy = { version = "0.4.0", optional = true }
hyper-old-types = "0.11.0"
isolang = { version = "1.0", features = ["serde_serialize"] }
log = "0.4.6"
reqwest = { version = "0.10.8", default-features = false, features = ["json", "blocking"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_urlencoded = "0.6.1"
serde_qs = "0.6.0"
url = "2.1.1"
tap-reader = "1"
toml = { version = "0.5.0", optional = true }
tungstenite = "0.11.0"
async-trait = "0.1.40"
tokio = "0.2.22"
async-h1 = { version = "2.1.2", optional = true }
async-native-tls = { version = "0.3.3", optional = true }
smol = { version = "1.2.2", optional = true }
http-types = { version = "2.5.0", optional = true }
async-mutex = { version = "1.4.0", optional = true }

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[features]
default = ["reqwest/default-tls"]
json = []
env = ["envy"]
all = ["toml", "json", "env", "async"]
rustls-tls = ["reqwest/rustls-tls"]
nightly = []
async = ["async-h1", "async-native-tls", "smol", "http-types", "async-mutex"]

[dev-dependencies]
tempfile = "3.0.3"
indoc = "1.0.2"
pretty_env_logger = "0.4.0"

[package.metadata.docs.rs]
features = ["all"]