-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
70 lines (60 loc) · 1.71 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[package]
authors = ["Spanfile <me@spans.fi>"]
description = "A wrapper for the Spotify Web API"
edition = "2021"
keywords = ["spotify"]
license = "MIT OR Apache-2.0"
name = "ferrispot"
repository = "https://github.com/Spanfile/Ferrispot"
version = "0.4.2"
[dependencies]
# async-stream = "0.3.3"
# futures = "0.3.21"
serde = { version = "1.0.147", features = ["derive"] }
thiserror = "1.0.37"
# async/sync client dependencies
async-trait = { version = "0.1.58", optional = true }
base64 = { version = "0.21.0", optional = true }
const_format = { version = "0.2.30", optional = true }
log = { version = "0.4.17", optional = true }
rand = { version = "0.8.5", optional = true }
reqwest = { version = "0.11.12", default-features = false, features = [
"json",
], optional = true }
sha2 = { version = "0.10.6", optional = true }
# rate limit sleep dependencies
async-std = { version = "1.12.0", optional = true }
tokio = { version = "1.22.0", features = ["time"], optional = true }
[dev-dependencies]
dotenvy = "0.15.6"
env_logger = "0.11.2"
serde_json = "1.0.87"
tokio = { version = "1.22.0", features = ["rt-multi-thread", "macros"] }
[features]
default = ["async", "tokio_sleep", "native-tls"]
# default = ["async_std_sleep"]
async = [
"dep:reqwest",
"dep:sha2",
"dep:log",
"dep:rand",
"dep:base64",
"dep:const_format",
"dep:async-trait",
]
sync = [
"dep:reqwest",
"dep:sha2",
"dep:log",
"dep:rand",
"dep:base64",
"dep:const_format",
"reqwest?/blocking",
]
async_std_sleep = ["dep:async-std"]
tokio_sleep = ["dep:tokio"]
native-tls = ["reqwest?/native-tls"]
rustls-tls = ["reqwest?/rustls-tls"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]