-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
48 lines (44 loc) · 1.52 KB
/
Cargo.toml
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
[package]
name = "twapi-v2"
version = "0.15.2"
authors = ["aoyagikouhei <[email protected]>"]
license = "MIT"
edition = "2021"
description = "Twitter API v2 library."
repository = "https://github.com/aoyagikouhei/twapi-v2-rs"
keywords = ["twitter", "v2", "api", "client", "oauth"]
categories = ["api-bindings"]
readme = "README.md"
documentation = "https://docs.rs/twapi-v2"
[dependencies]
base64 = { version = "0.22", optional = true }
chrono = { version = "0.4", features = [ "serde" ] }
hmac = { version = "0.12", optional = true }
itertools = "0.13"
oauth2 = { version = "4.4", optional = true }
rand = { version = "0.8", optional = true }
reqwest = { version = "0.12", features = ["json"], default-features = false, optional = true }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sha1 = { version = "0.10", optional = true }
thiserror = "2"
tokio = { version = "1", features = ["time"], optional = true }
tracing = "0.1"
form_urlencoded = { version = "1.2", optional = true }
[features]
default = ["reqwest/default-tls"]
rustls-tls = ["reqwest/rustls-tls"]
retry = ["tokio"]
oauth = ["oauth2"]
oauth10a = ["base64", "hmac", "rand", "sha1", "form_urlencoded"]
models = []
upload = ["reqwest/multipart", "tokio"]
[dev-dependencies]
anyhow = "1"
mockito = "1.6"
tokio = { version = "1", features = ["macros"] }
[package.metadata.docs.rs]
all-features = true
features = ["retry", "oauth", "oauth10a", "rustls-tls", "models"]
rustdoc-args = ["--cfg", "docsrs"]
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]