-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
47 lines (40 loc) · 1.55 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
[package]
name = "rs621"
version = "0.7.0-alpha1"
authors = ["nasso <[email protected]>"]
edition = "2018"
description = "Rust crate for the E621 API (a large online archive of furry art)."
repository = "https://github.com/nasso/rs621"
readme = "README.md"
keywords = ["e621", "e926", "furry", "api", "client"]
categories = ["api-bindings"]
license = "MIT OR Apache-2.0"
exclude = ["src/mocked"]
[badges]
travis-ci = { repository = "nasso/rs621" }
codecov = { repository = "nasso/rs621" }
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["rate-limit", "reqwest/default-tls"]
socks = ["reqwest/socks"]
rate-limit = ["gloo-timers", "futures", "web-time", "tokio"]
[dependencies]
thiserror = "1"
url = "2"
urlencoding = "1"
chrono = { version = "0.4", features = ["serde"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
derivative = "2"
itertools = "0.10"
futures = { version = "0.3", default-features = false }
reqwest = { version = ">=0.11, <0.13", default-features = false, features = ["json"] }
[dev-dependencies]
mockito = "0.30"
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
[target.'cfg(target_family = "wasm")'.dependencies]
gloo-timers = { optional = true, version = "0.3", features = ["futures"] }
futures = { optional = true, version = "0.3", features = ["std", "alloc"] }
web-time = { optional = true, version = "1.1.0" }
[target.'cfg(not(target_family = "wasm"))'.dependencies]
tokio = { optional = true, version = "1", features = ["time", "sync"] }