aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorhozan23 <hozan23@karyontech.net>2024-10-12 22:06:35 +0200
committerhozan23 <hozan23@karyontech.net>2024-10-12 22:06:35 +0200
commitc42258ff66eb4d17d5945a9fcacc4e5b07f8edea (patch)
tree14a609d1e52bf0236816ee9ad6c79f99f0d2043e /net
parentcae0c15d10235bf0ec0bd6f8b20814dc7b63dfd5 (diff)
Move the dependencies to the workspace cargo.toml file
Diffstat (limited to 'net')
-rw-r--r--net/Cargo.toml48
-rw-r--r--net/async_rustls/Cargo.toml5
2 files changed, 24 insertions, 29 deletions
diff --git a/net/Cargo.toml b/net/Cargo.toml
index 01c7d3e..1a1a34d 100644
--- a/net/Cargo.toml
+++ b/net/Cargo.toml
@@ -20,44 +20,40 @@ ws = ["tcp", "async-tungstenite"]
udp = []
unix = ["stream"]
smol = [
- "karyon_core/smol",
- "async-tungstenite?/async-std-runtime",
- "karyon_async_rustls?/smol",
+ "karyon_core/smol",
+ "async-tungstenite?/async-std-runtime",
+ "karyon_async_rustls?/smol",
]
tokio = [
- "karyon_core/tokio",
- "async-tungstenite?/tokio-runtime",
- "karyon_async_rustls?/tokio",
- "dep:tokio",
+ "karyon_core/tokio",
+ "async-tungstenite?/tokio-runtime",
+ "karyon_async_rustls?/tokio",
+ "dep:tokio",
]
serde = ["dep:serde"]
[dependencies]
-karyon_core = { version = "0.1.6", path = "../core", default-features = false }
-karyon_async_rustls = { version = "0.1.6", path = "./async_rustls", default-features = false, optional = true }
+karyon_core = { workspace = true }
+karyon_async_rustls = { workspace = true, optional = true }
-log = "0.4.21"
-thiserror = "1.0.61"
-url = "2.5.2"
-
-# encode/decode
-serde = { version = "1.0.203", features = ["derive"], optional = true }
-bincode = { version = "2.0.0-rc.3", features = ["derive"] }
+log = { workspace = true }
+thiserror = { workspace = true }
+url = { workspace = true }
+serde = { workspace = true, features = ["derive"], optional = true }
+bincode = { workspace = true, features = ["derive"] }
# async
-async-trait = "0.1.80"
-async-channel = "2.3.1"
-futures-util = { version = "0.3.30", default-features = false, features = [
- "sink",
-], optional = true }
-pin-project-lite = { version = "0.2.14", optional = true }
-tokio = { version = "1.38.0", features = ["io-util"], optional = true }
+async-trait = { workspace = true }
+async-channel = { workspace = true }
+futures-util = { workspace = true, features = ["sink"], optional = true }
+pin-project-lite = { workspace = true, optional = true }
+tokio = { workspace = true, features = ["io-util"], optional = true }
# websocket
-async-tungstenite = { version = "0.26.2", default-features = false, optional = true }
+async-tungstenite = { workspace = true, optional = true }
# tls
-rustls-pki-types = { version = "1.7.0", optional = true }
+rustls-pki-types = { workspace = true, optional = true }
[dev-dependencies]
-smol = "2.0.0"
+smol = { workspace = true }
diff --git a/net/async_rustls/Cargo.toml b/net/async_rustls/Cargo.toml
index 66ac2cc..871f02e 100644
--- a/net/async_rustls/Cargo.toml
+++ b/net/async_rustls/Cargo.toml
@@ -14,6 +14,5 @@ smol = ["futures-rustls"]
tokio = ["tokio-rustls"]
[dependencies]
-futures-rustls = { version = "0.26.0", optional = true }
-tokio-rustls = { version = "0.26.0", optional = true }
-
+futures-rustls = { workspace = true, optional = true }
+tokio-rustls = { workspace = true, optional = true }