From c177ba7a49caf63582719a4086e5032e2c939cfa Mon Sep 17 00:00:00 2001 From: jakka Date: Wed, 1 Oct 2025 00:25:24 +0300 Subject: reconfigured the library, moved async client and trait to their own module. in the future sync and async implementations will be separated --- Cargo.toml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'Cargo.toml') 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"] -- cgit v1.3.1