summaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorjakka <jakka@jakka.su>2025-10-01 00:25:24 +0300
committerjakka <jakka@jakka.su>2025-10-01 00:25:24 +0300
commitc177ba7a49caf63582719a4086e5032e2c939cfa (patch)
treeb922d01ef0061137f79101ff1de513ba402fbfa2 /Cargo.toml
parent6b0a6c0ca36c181d55c78a5dca46f1890c9cce38 (diff)
reconfigured the library, moved async client and trait to their own module. in the future sync and async implementations will be separated
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml16
1 files changed, 12 insertions, 4 deletions
diff --git a/Cargo.toml b/Cargo.toml
index c3db673..02c7815 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,12 +4,20 @@ version = "0.1.0"
edition = "2024"
[dependencies]
-async-trait = "0.1.89"
-reqwest = { version = "0.12.23", features = ["json", "stream"] }
+async-trait = { version = "0.1.89", optional = true }
+reqwest = { version = "0.12.23", features = [
+ "json",
+ "stream",
+], optional = true }
serde = { version = "1.0.225", features = ["derive"] }
serde_json = "1.0.145"
serde_repr = "0.1.20"
thiserror = "2.0.16"
-tokio = { version = "1.47.1", features = ["rt", "macros"] }
-tokio-util = "0.7.16"
+tokio = { version = "1.47.1", features = ["rt", "macros"], optional = true }
+tokio-util = { version = "0.7.16", optional = true }
+ureq = { version = "3.1.2", features = ["json"], optional = true }
urlencoding = "2.1.3"
+
+[features]
+async = ["dep:async-trait", "dep:reqwest", "dep:tokio", "dep:tokio-util"]
+sync = ["dep:ureq"]