Add reqwest and ureq feature
Available features: android -> reqwest small -> ureq
This commit is contained in:
18
Cargo.toml
18
Cargo.toml
@@ -20,7 +20,18 @@ clap = { version = "4.5.23", features = ["derive"] }
|
||||
prettytable = "0.10.0"
|
||||
serde = { version = "1.0.217", features = ["derive"] }
|
||||
serde_derive = "1.0.217"
|
||||
ureq = { version = "*", features = ["json", "tls"] }
|
||||
anyhow = "=1.0.95"
|
||||
|
||||
[dependencies.ureq]
|
||||
version = "*"
|
||||
features = ["default", "json", "tls"]
|
||||
optional = true
|
||||
|
||||
[dependencies.reqwest]
|
||||
version = "0.12.11"
|
||||
features = ["blocking", "json", "rustls-tls"]
|
||||
default-features = false
|
||||
optional = true
|
||||
|
||||
[lib]
|
||||
name = "tuemensa_lib"
|
||||
@@ -29,3 +40,8 @@ path = "src/lib.rs"
|
||||
[[bin]]
|
||||
name = "tuemensa"
|
||||
path = "src/main.rs"
|
||||
|
||||
[features]
|
||||
default = ["android"]
|
||||
android = ["reqwest"]
|
||||
small = []
|
||||
|
Reference in New Issue
Block a user