aboutsummaryrefslogtreecommitdiff
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
parentcae0c15d10235bf0ec0bd6f8b20814dc7b63dfd5 (diff)
Move the dependencies to the workspace cargo.toml file
-rw-r--r--Cargo.toml55
-rw-r--r--core/Cargo.toml31
-rw-r--r--jsonrpc/Cargo.toml41
-rw-r--r--jsonrpc/impl/Cargo.toml8
-rw-r--r--net/Cargo.toml48
-rw-r--r--net/async_rustls/Cargo.toml5
-rw-r--r--p2p/Cargo.toml54
7 files changed, 135 insertions, 107 deletions
diff --git a/Cargo.toml b/Cargo.toml
index b74b876..5205749 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,7 +14,54 @@ license = "GPL-3.0"
authors = ["hozan23 <hozan23@karyontech.net>"]
[workspace.dependencies]
-karyon_core = { path = "core", default-features = false }
-karyon_net = { path = "net", default-features = false }
-karyon_jsonrpc = { path = "jsonrpc", default-features = false }
-karyon_p2p = { path = "p2p", default-features = false }
+karyon_core = { path = "core", version = "0.1.6", default-features = false }
+
+karyon_net = { path = "net", version = "0.1.6", default-features = false }
+karyon_async_rustls = { path = "net/async_rustls", version = "0.1.6", default-features = false }
+
+karyon_jsonrpc = { path = "jsonrpc", version = "0.1.6", default-features = false }
+karyon_jsonrpc_macro = { path = "jsonrpc/impl", version = "0.1.6", default-features = false }
+
+karyon_p2p = { path = "p2p", version = "0.1.6", default-features = false }
+
+
+log = "0.4.21"
+thiserror = "1.0.61"
+chrono = "0.4.38"
+rand = "0.8.5"
+url = "2.5.2"
+parking_lot = "0.12.3"
+once_cell = "1.19.0"
+semver = "1.0.23"
+sha2 = "0.10.8"
+
+# async
+async-channel = "2.3.1"
+async-trait = "0.1.80"
+pin-project-lite = "0.2.14"
+async-process = "2.2.3"
+smol = "2.0.0"
+tokio = "1.38.0"
+futures-util = { version = "0.3.5", default-features = false }
+
+# encode
+bincode = "2.0.0-rc.3"
+serde = "1.0"
+serde_json = "1.0.117"
+base64 = "0.22.1"
+
+# macros
+proc-macro2 = "1.0"
+quote = "1.0"
+syn = "2.0"
+
+# websocket
+async-tungstenite = { version = "0.26.2", default-features = false }
+
+# tls
+rustls-pki-types = "1.7.0"
+futures-rustls = "0.26.0"
+tokio-rustls = "0.26.0"
+rcgen = "0.13.1"
+yasna = "0.5.2"
+x509-parser = "0.16.0"
diff --git a/core/Cargo.toml b/core/Cargo.toml
index 895ddf6..a43537b 100644
--- a/core/Cargo.toml
+++ b/core/Cargo.toml
@@ -15,26 +15,23 @@ tokio = ["dep:tokio"]
smol = ["dep:smol", "async-process"]
[dependencies]
-log = "0.4.21"
-thiserror = "1.0.61"
-chrono = "0.4.38"
-rand = "0.8.5"
+log = { workspace = true }
+thiserror = { workspace = true }
+chrono = { workspace = true }
+rand = { workspace = true }
+parking_lot = { workspace = true }
dirs = "5.0.1"
-parking_lot = "0.12.3"
-once_cell = "1.19.0"
+once_cell = { workspace = true }
-# async
-async-channel = "2.3.1"
-pin-project-lite = "0.2.14"
-async-process = { version = "2.2.3", optional = true }
-smol = { version = "2.0.0", optional = true }
-tokio = { version = "1.38.0", features = ["full"], optional = true }
-futures-util = { version = "0.3.5", features = [
- "alloc",
+async-channel = { workspace = true }
+pin-project-lite = { workspace = true }
+async-process = { workspace = true, optional = true }
+smol = { workspace = true, optional = true }
+tokio = { workspace = true, features = ["full"], optional = true }
+futures-util = { workspace = true, features = [
+ "alloc",
], default-features = false }
-# encode
-bincode = "2.0.0-rc.3"
+bincode = { workspace = true }
-# crypto
ed25519-dalek = { version = "2.1.1", features = ["rand_core"], optional = true }
diff --git a/jsonrpc/Cargo.toml b/jsonrpc/Cargo.toml
index 2260b7e..bdbcb74 100644
--- a/jsonrpc/Cargo.toml
+++ b/jsonrpc/Cargo.toml
@@ -17,39 +17,38 @@ tls = ["tcp", "karyon_net/tls"]
ws = ["tcp", "karyon_net/ws", "async-tungstenite"]
unix = ["karyon_net/unix"]
smol = [
- "karyon_core/smol",
- "karyon_net/smol",
- "karyon_jsonrpc_macro/smol",
- "async-tungstenite?/async-std-runtime",
+ "karyon_core/smol",
+ "karyon_net/smol",
+ "karyon_jsonrpc_macro/smol",
+ "async-tungstenite?/async-std-runtime",
]
tokio = [
- "karyon_core/tokio",
- "karyon_net/tokio",
- "karyon_jsonrpc_macro/tokio",
- "async-tungstenite?/tokio-runtime",
+ "karyon_core/tokio",
+ "karyon_net/tokio",
+ "karyon_jsonrpc_macro/tokio",
+ "async-tungstenite?/tokio-runtime",
]
[dependencies]
-karyon_core = { version = "0.1.6", path = "../core", default-features = false }
-karyon_net = { version = "0.1.6", path = "../net", default-features = false }
+karyon_core = { workspace = true }
+karyon_net = { workspace = true }
+karyon_jsonrpc_macro = { workspace = true }
-karyon_jsonrpc_macro = { version = "0.1.6", path = "impl", default-features = false }
-
-log = "0.4.21"
-rand = "0.8.5"
-thiserror = "1.0.61"
+log = { workspace = true }
+rand = { workspace = true }
+thiserror = { workspace = true }
# encode/decode
-serde = { version = "1.0.203", features = ["derive"] }
-serde_json = "1.0.117"
+serde = { workspace = true, features = ["derive"] }
+serde_json = { workspace = true }
# async
-async-trait = "0.1.80"
-async-channel = "2.3.1"
+async-trait = { workspace = true }
+async-channel = { workspace = true }
# websocket
-async-tungstenite = { version = "0.26.2", default-features = false, optional = true }
+async-tungstenite = { workspace = true, optional = true }
[dev-dependencies]
+smol = { workspace = true }
env_logger = "0.11.3"
-smol = "2.0.0"
diff --git a/jsonrpc/impl/Cargo.toml b/jsonrpc/impl/Cargo.toml
index cf001e1..0bf7890 100644
--- a/jsonrpc/impl/Cargo.toml
+++ b/jsonrpc/impl/Cargo.toml
@@ -19,8 +19,8 @@ smol = []
tokio = []
[dependencies]
-proc-macro2 = "1.0"
-quote = "1.0"
-syn = { version = "2.0", features = ["full"] }
+proc-macro2 = { workspace = true }
+quote = { workspace = true }
+syn = { workspace = true, features = ["full"] }
-serde_json = "1.0.117"
+serde_json = { workspace = true }
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 }
diff --git a/p2p/Cargo.toml b/p2p/Cargo.toml
index 9c303e9..15f8cac 100644
--- a/p2p/Cargo.toml
+++ b/p2p/Cargo.toml
@@ -18,50 +18,40 @@ tokio = ["karyon_core/tokio", "karyon_net/tokio", "tokio-rustls"]
serde = ["dep:serde", "karyon_net/serde"]
[dependencies]
-karyon_core = { workspace = true, features = [
- "crypto",
-], default-features = false }
-karyon_net = { workspace = true, default-features = false, features = [
- "tcp",
- "tls",
- "udp",
-] }
+karyon_core = { workspace = true, features = ["crypto"] }
+karyon_net = { workspace = true, features = ["tcp", "tls", "udp"] }
-log = "0.4.21"
-chrono = "0.4.38"
-rand = "0.8.5"
-thiserror = "1.0.61"
-semver = "1.0.23"
-sha2 = "0.10.8"
-parking_lot = "0.12.3"
+log = { workspace = true }
+chrono = { workspace = true }
+rand = { workspace = true }
+thiserror = { workspace = true }
+semver = { workspace = true }
+sha2 = { workspace = true }
+parking_lot = { workspace = true }
# encode/decode
-bincode = { version = "2.0.0-rc.3", features = ["derive"] }
-base64 = "0.22.1"
-serde = { version = "1.0.203", features = ["derive"], optional = true }
+bincode = { workspace = true, features = ["derive"] }
+base64 = { workspace = true }
+serde = { workspace = true, features = ["derive"], optional = true }
# async
-async-trait = "0.1.80"
-async-channel = "2.3.1"
-futures-util = { version = "0.3.5", features = [
- "alloc",
-], default-features = false }
+async-trait = { workspace = true }
+async-channel = { workspace = true }
+futures-util = { workspace = true, features = ["alloc"] }
# tls
-rcgen = "0.13.1"
-yasna = "0.5.2"
-x509-parser = "0.16.0"
-futures-rustls = { version = "0.26.0", features = [
- "aws-lc-rs",
-], optional = true }
-tokio-rustls = { version = "0.26.0", features = ["aws-lc-rs"], optional = true }
-rustls-pki-types = "1.7.0"
+rcgen = { workspace = true }
+yasna = { workspace = true }
+x509-parser = { workspace = true }
+futures-rustls = { workspace = true, features = ["aws-lc-rs"], optional = true }
+tokio-rustls = { workspace = true, features = ["aws-lc-rs"], optional = true }
+rustls-pki-types = { workspace = true }
[dev-dependencies]
+smol = { workspace = true }
blocking = "1.6.1"
clap = { version = "4.5.7", features = ["derive"] }
ctrlc = "3.4.4"
easy-parallel = "3.3.1"
env_logger = "0.11.3"
-smol = "2.0.0"