aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhozan23 <hozan23@proton.me>2023-11-09 11:38:19 +0300
committerhozan23 <hozan23@proton.me>2023-11-09 11:38:19 +0300
commit849d827486c75b2ab223d7b0e638dbb5b74d4d1d (patch)
tree41cd3babc37147ec4a40cab8ce8ae31c91cce33b
parentde1354525895ffbad18f90a5246fd65157f7449e (diff)
rename crates
-rw-r--r--Cargo.toml23
-rw-r--r--core/Cargo.toml (renamed from karyons_core/Cargo.toml)5
-rw-r--r--core/src/async_utils/backoff.rs (renamed from karyons_core/src/async_utils/backoff.rs)0
-rw-r--r--core/src/async_utils/condvar.rs (renamed from karyons_core/src/async_utils/condvar.rs)0
-rw-r--r--core/src/async_utils/condwait.rs (renamed from karyons_core/src/async_utils/condwait.rs)0
-rw-r--r--core/src/async_utils/mod.rs (renamed from karyons_core/src/async_utils/mod.rs)0
-rw-r--r--core/src/async_utils/select.rs (renamed from karyons_core/src/async_utils/select.rs)0
-rw-r--r--core/src/async_utils/task_group.rs (renamed from karyons_core/src/async_utils/task_group.rs)0
-rw-r--r--core/src/async_utils/timeout.rs (renamed from karyons_core/src/async_utils/timeout.rs)0
-rw-r--r--core/src/error.rs (renamed from karyons_core/src/error.rs)0
-rw-r--r--core/src/event.rs (renamed from karyons_core/src/event.rs)0
-rw-r--r--core/src/lib.rs (renamed from karyons_core/src/lib.rs)0
-rw-r--r--core/src/pubsub.rs (renamed from karyons_core/src/pubsub.rs)0
-rw-r--r--core/src/utils/decode.rs (renamed from karyons_core/src/utils/decode.rs)0
-rw-r--r--core/src/utils/encode.rs (renamed from karyons_core/src/utils/encode.rs)0
-rw-r--r--core/src/utils/mod.rs (renamed from karyons_core/src/utils/mod.rs)0
-rw-r--r--core/src/utils/path.rs (renamed from karyons_core/src/utils/path.rs)0
-rw-r--r--net/Cargo.toml (renamed from karyons_net/Cargo.toml)6
-rw-r--r--net/src/connection.rs (renamed from karyons_net/src/connection.rs)0
-rw-r--r--net/src/endpoint.rs (renamed from karyons_net/src/endpoint.rs)0
-rw-r--r--net/src/error.rs (renamed from karyons_net/src/error.rs)0
-rw-r--r--net/src/lib.rs (renamed from karyons_net/src/lib.rs)0
-rw-r--r--net/src/listener.rs (renamed from karyons_net/src/listener.rs)0
-rw-r--r--net/src/transports/mod.rs (renamed from karyons_net/src/transports/mod.rs)0
-rw-r--r--net/src/transports/tcp.rs (renamed from karyons_net/src/transports/tcp.rs)0
-rw-r--r--net/src/transports/udp.rs (renamed from karyons_net/src/transports/udp.rs)0
-rw-r--r--net/src/transports/unix.rs (renamed from karyons_net/src/transports/unix.rs)0
-rw-r--r--p2p/Cargo.toml (renamed from karyons_p2p/Cargo.toml)8
-rw-r--r--p2p/examples/chat.rs (renamed from karyons_p2p/examples/chat.rs)0
-rwxr-xr-xp2p/examples/chat_simulation.sh (renamed from karyons_p2p/examples/chat_simulation.sh)0
-rw-r--r--p2p/examples/monitor.rs (renamed from karyons_p2p/examples/monitor.rs)0
-rwxr-xr-xp2p/examples/net_simulation.sh (renamed from karyons_p2p/examples/net_simulation.sh)0
-rw-r--r--p2p/examples/peer.rs (renamed from karyons_p2p/examples/peer.rs)0
-rw-r--r--p2p/src/backend.rs (renamed from karyons_p2p/src/backend.rs)0
-rw-r--r--p2p/src/config.rs (renamed from karyons_p2p/src/config.rs)0
-rw-r--r--p2p/src/discovery/lookup.rs (renamed from karyons_p2p/src/discovery/lookup.rs)0
-rw-r--r--p2p/src/discovery/mod.rs (renamed from karyons_p2p/src/discovery/mod.rs)0
-rw-r--r--p2p/src/discovery/refresh.rs (renamed from karyons_p2p/src/discovery/refresh.rs)0
-rw-r--r--p2p/src/error.rs (renamed from karyons_p2p/src/error.rs)0
-rw-r--r--p2p/src/io_codec.rs (renamed from karyons_p2p/src/io_codec.rs)0
-rw-r--r--p2p/src/lib.rs (renamed from karyons_p2p/src/lib.rs)0
-rw-r--r--p2p/src/message.rs (renamed from karyons_p2p/src/message.rs)0
-rw-r--r--p2p/src/monitor.rs (renamed from karyons_p2p/src/monitor.rs)0
-rw-r--r--p2p/src/net/connection_queue.rs (renamed from karyons_p2p/src/net/connection_queue.rs)0
-rw-r--r--p2p/src/net/connector.rs (renamed from karyons_p2p/src/net/connector.rs)0
-rw-r--r--p2p/src/net/listener.rs (renamed from karyons_p2p/src/net/listener.rs)0
-rw-r--r--p2p/src/net/mod.rs (renamed from karyons_p2p/src/net/mod.rs)0
-rw-r--r--p2p/src/net/slots.rs (renamed from karyons_p2p/src/net/slots.rs)0
-rw-r--r--p2p/src/peer/mod.rs (renamed from karyons_p2p/src/peer/mod.rs)0
-rw-r--r--p2p/src/peer/peer_id.rs (renamed from karyons_p2p/src/peer/peer_id.rs)0
-rw-r--r--p2p/src/peer_pool.rs (renamed from karyons_p2p/src/peer_pool.rs)0
-rw-r--r--p2p/src/protocol.rs (renamed from karyons_p2p/src/protocol.rs)0
-rw-r--r--p2p/src/protocols/mod.rs (renamed from karyons_p2p/src/protocols/mod.rs)0
-rw-r--r--p2p/src/protocols/ping.rs (renamed from karyons_p2p/src/protocols/ping.rs)0
-rw-r--r--p2p/src/routing_table/bucket.rs (renamed from karyons_p2p/src/routing_table/bucket.rs)0
-rw-r--r--p2p/src/routing_table/entry.rs (renamed from karyons_p2p/src/routing_table/entry.rs)0
-rw-r--r--p2p/src/routing_table/mod.rs (renamed from karyons_p2p/src/routing_table/mod.rs)0
-rw-r--r--p2p/src/utils/mod.rs (renamed from karyons_p2p/src/utils/mod.rs)0
-rw-r--r--p2p/src/utils/version.rs (renamed from karyons_p2p/src/utils/version.rs)0
-rw-r--r--src/lib.rs1
60 files changed, 24 insertions, 19 deletions
diff --git a/Cargo.toml b/Cargo.toml
index aa71954..aa5ba29 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,12 +1,17 @@
-[package]
-name = "karyons"
-version = "0.1.0"
-edition = "2021"
-
[workspace]
-
members = [
- "karyons_core",
- "karyons_net",
- "karyons_p2p",
+ "core",
+ "net",
+ "p2p",
]
+
+resolver = "2"
+
+[workspace.package]
+version = "0.1.0"
+edition = "2021"
+
+[workspace.dependencies]
+karyons_core = { path = "core" }
+karyons_net = { path = "net" }
+karyons_p2p = { path = "p2p" }
diff --git a/karyons_core/Cargo.toml b/core/Cargo.toml
index 712b7db..caa3ed5 100644
--- a/karyons_core/Cargo.toml
+++ b/core/Cargo.toml
@@ -1,7 +1,8 @@
[package]
name = "karyons_core"
-version = "0.1.0"
-edition = "2021"
+version.workspace = true
+edition.workspace = true
+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
diff --git a/karyons_core/src/async_utils/backoff.rs b/core/src/async_utils/backoff.rs
index f7e131d..f7e131d 100644
--- a/karyons_core/src/async_utils/backoff.rs
+++ b/core/src/async_utils/backoff.rs
diff --git a/karyons_core/src/async_utils/condvar.rs b/core/src/async_utils/condvar.rs
index 814f78f..814f78f 100644
--- a/karyons_core/src/async_utils/condvar.rs
+++ b/core/src/async_utils/condvar.rs
diff --git a/karyons_core/src/async_utils/condwait.rs b/core/src/async_utils/condwait.rs
index f16a99e..f16a99e 100644
--- a/karyons_core/src/async_utils/condwait.rs
+++ b/core/src/async_utils/condwait.rs
diff --git a/karyons_core/src/async_utils/mod.rs b/core/src/async_utils/mod.rs
index c871bad..c871bad 100644
--- a/karyons_core/src/async_utils/mod.rs
+++ b/core/src/async_utils/mod.rs
diff --git a/karyons_core/src/async_utils/select.rs b/core/src/async_utils/select.rs
index d61b355..d61b355 100644
--- a/karyons_core/src/async_utils/select.rs
+++ b/core/src/async_utils/select.rs
diff --git a/karyons_core/src/async_utils/task_group.rs b/core/src/async_utils/task_group.rs
index 8707d0e..8707d0e 100644
--- a/karyons_core/src/async_utils/task_group.rs
+++ b/core/src/async_utils/task_group.rs
diff --git a/karyons_core/src/async_utils/timeout.rs b/core/src/async_utils/timeout.rs
index 7c55e1b..7c55e1b 100644
--- a/karyons_core/src/async_utils/timeout.rs
+++ b/core/src/async_utils/timeout.rs
diff --git a/karyons_core/src/error.rs b/core/src/error.rs
index 15947c8..15947c8 100644
--- a/karyons_core/src/error.rs
+++ b/core/src/error.rs
diff --git a/karyons_core/src/event.rs b/core/src/event.rs
index b856385..b856385 100644
--- a/karyons_core/src/event.rs
+++ b/core/src/event.rs
diff --git a/karyons_core/src/lib.rs b/core/src/lib.rs
index 83af888..83af888 100644
--- a/karyons_core/src/lib.rs
+++ b/core/src/lib.rs
diff --git a/karyons_core/src/pubsub.rs b/core/src/pubsub.rs
index 4cc0ab7..4cc0ab7 100644
--- a/karyons_core/src/pubsub.rs
+++ b/core/src/pubsub.rs
diff --git a/karyons_core/src/utils/decode.rs b/core/src/utils/decode.rs
index a8a6522..a8a6522 100644
--- a/karyons_core/src/utils/decode.rs
+++ b/core/src/utils/decode.rs
diff --git a/karyons_core/src/utils/encode.rs b/core/src/utils/encode.rs
index 7d1061b..7d1061b 100644
--- a/karyons_core/src/utils/encode.rs
+++ b/core/src/utils/encode.rs
diff --git a/karyons_core/src/utils/mod.rs b/core/src/utils/mod.rs
index a3c3f50..a3c3f50 100644
--- a/karyons_core/src/utils/mod.rs
+++ b/core/src/utils/mod.rs
diff --git a/karyons_core/src/utils/path.rs b/core/src/utils/path.rs
index 2cd900a..2cd900a 100644
--- a/karyons_core/src/utils/path.rs
+++ b/core/src/utils/path.rs
diff --git a/karyons_net/Cargo.toml b/net/Cargo.toml
index 70e1917..b2cab58 100644
--- a/karyons_net/Cargo.toml
+++ b/net/Cargo.toml
@@ -1,12 +1,12 @@
[package]
name = "karyons_net"
-version = "0.1.0"
-edition = "2021"
+version.workspace = true
+edition.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
-karyons_core = { path = "../karyons_core" }
+karyons_core.workspace = true
smol = "1.3.0"
async-trait = "0.1.74"
diff --git a/karyons_net/src/connection.rs b/net/src/connection.rs
index 518ccfd..518ccfd 100644
--- a/karyons_net/src/connection.rs
+++ b/net/src/connection.rs
diff --git a/karyons_net/src/endpoint.rs b/net/src/endpoint.rs
index 50dfe6b..50dfe6b 100644
--- a/karyons_net/src/endpoint.rs
+++ b/net/src/endpoint.rs
diff --git a/karyons_net/src/error.rs b/net/src/error.rs
index a1c85db..a1c85db 100644
--- a/karyons_net/src/error.rs
+++ b/net/src/error.rs
diff --git a/karyons_net/src/lib.rs b/net/src/lib.rs
index 914c6d8..914c6d8 100644
--- a/karyons_net/src/lib.rs
+++ b/net/src/lib.rs
diff --git a/karyons_net/src/listener.rs b/net/src/listener.rs
index 31a63ae..31a63ae 100644
--- a/karyons_net/src/listener.rs
+++ b/net/src/listener.rs
diff --git a/karyons_net/src/transports/mod.rs b/net/src/transports/mod.rs
index f399133..f399133 100644
--- a/karyons_net/src/transports/mod.rs
+++ b/net/src/transports/mod.rs
diff --git a/karyons_net/src/transports/tcp.rs b/net/src/transports/tcp.rs
index 5ff7b28..5ff7b28 100644
--- a/karyons_net/src/transports/tcp.rs
+++ b/net/src/transports/tcp.rs
diff --git a/karyons_net/src/transports/udp.rs b/net/src/transports/udp.rs
index 27fb9ae..27fb9ae 100644
--- a/karyons_net/src/transports/udp.rs
+++ b/net/src/transports/udp.rs
diff --git a/karyons_net/src/transports/unix.rs b/net/src/transports/unix.rs
index c89832e..c89832e 100644
--- a/karyons_net/src/transports/unix.rs
+++ b/net/src/transports/unix.rs
diff --git a/karyons_p2p/Cargo.toml b/p2p/Cargo.toml
index 1c2a5aa..94fc284 100644
--- a/karyons_p2p/Cargo.toml
+++ b/p2p/Cargo.toml
@@ -1,13 +1,13 @@
[package]
name = "karyons_p2p"
-version = "0.1.0"
-edition = "2021"
+version.workspace = true
+edition.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
-karyons_core = { path = "../karyons_core" }
-karyons_net = { path = "../karyons_net" }
+karyons_core.workspace = true
+karyons_net.workspace = true
async-trait = "0.1.73"
smol = "1.3.0"
diff --git a/karyons_p2p/examples/chat.rs b/p2p/examples/chat.rs
index 4358362..4358362 100644
--- a/karyons_p2p/examples/chat.rs
+++ b/p2p/examples/chat.rs
diff --git a/karyons_p2p/examples/chat_simulation.sh b/p2p/examples/chat_simulation.sh
index 82bbe96..82bbe96 100755
--- a/karyons_p2p/examples/chat_simulation.sh
+++ b/p2p/examples/chat_simulation.sh
diff --git a/karyons_p2p/examples/monitor.rs b/p2p/examples/monitor.rs
index cd4defc..cd4defc 100644
--- a/karyons_p2p/examples/monitor.rs
+++ b/p2p/examples/monitor.rs
diff --git a/karyons_p2p/examples/net_simulation.sh b/p2p/examples/net_simulation.sh
index 1a05adf..1a05adf 100755
--- a/karyons_p2p/examples/net_simulation.sh
+++ b/p2p/examples/net_simulation.sh
diff --git a/karyons_p2p/examples/peer.rs b/p2p/examples/peer.rs
index f805d68..f805d68 100644
--- a/karyons_p2p/examples/peer.rs
+++ b/p2p/examples/peer.rs
diff --git a/karyons_p2p/src/backend.rs b/p2p/src/backend.rs
index 290e3e7..290e3e7 100644
--- a/karyons_p2p/src/backend.rs
+++ b/p2p/src/backend.rs
diff --git a/karyons_p2p/src/config.rs b/p2p/src/config.rs
index ebecbf0..ebecbf0 100644
--- a/karyons_p2p/src/config.rs
+++ b/p2p/src/config.rs
diff --git a/karyons_p2p/src/discovery/lookup.rs b/p2p/src/discovery/lookup.rs
index f404133..f404133 100644
--- a/karyons_p2p/src/discovery/lookup.rs
+++ b/p2p/src/discovery/lookup.rs
diff --git a/karyons_p2p/src/discovery/mod.rs b/p2p/src/discovery/mod.rs
index 94b350b..94b350b 100644
--- a/karyons_p2p/src/discovery/mod.rs
+++ b/p2p/src/discovery/mod.rs
diff --git a/karyons_p2p/src/discovery/refresh.rs b/p2p/src/discovery/refresh.rs
index 7582c84..7582c84 100644
--- a/karyons_p2p/src/discovery/refresh.rs
+++ b/p2p/src/discovery/refresh.rs
diff --git a/karyons_p2p/src/error.rs b/p2p/src/error.rs
index 945e90a..945e90a 100644
--- a/karyons_p2p/src/error.rs
+++ b/p2p/src/error.rs
diff --git a/karyons_p2p/src/io_codec.rs b/p2p/src/io_codec.rs
index 4515832..4515832 100644
--- a/karyons_p2p/src/io_codec.rs
+++ b/p2p/src/io_codec.rs
diff --git a/karyons_p2p/src/lib.rs b/p2p/src/lib.rs
index 08ba059..08ba059 100644
--- a/karyons_p2p/src/lib.rs
+++ b/p2p/src/lib.rs
diff --git a/karyons_p2p/src/message.rs b/p2p/src/message.rs
index 833f6f4..833f6f4 100644
--- a/karyons_p2p/src/message.rs
+++ b/p2p/src/message.rs
diff --git a/karyons_p2p/src/monitor.rs b/p2p/src/monitor.rs
index ee0bf44..ee0bf44 100644
--- a/karyons_p2p/src/monitor.rs
+++ b/p2p/src/monitor.rs
diff --git a/karyons_p2p/src/net/connection_queue.rs b/p2p/src/net/connection_queue.rs
index fbc4bfc..fbc4bfc 100644
--- a/karyons_p2p/src/net/connection_queue.rs
+++ b/p2p/src/net/connection_queue.rs
diff --git a/karyons_p2p/src/net/connector.rs b/p2p/src/net/connector.rs
index 72dc0d8..72dc0d8 100644
--- a/karyons_p2p/src/net/connector.rs
+++ b/p2p/src/net/connector.rs
diff --git a/karyons_p2p/src/net/listener.rs b/p2p/src/net/listener.rs
index d1a7bfb..d1a7bfb 100644
--- a/karyons_p2p/src/net/listener.rs
+++ b/p2p/src/net/listener.rs
diff --git a/karyons_p2p/src/net/mod.rs b/p2p/src/net/mod.rs
index 9cdc748..9cdc748 100644
--- a/karyons_p2p/src/net/mod.rs
+++ b/p2p/src/net/mod.rs
diff --git a/karyons_p2p/src/net/slots.rs b/p2p/src/net/slots.rs
index 99f0a78..99f0a78 100644
--- a/karyons_p2p/src/net/slots.rs
+++ b/p2p/src/net/slots.rs
diff --git a/karyons_p2p/src/peer/mod.rs b/p2p/src/peer/mod.rs
index ee0fdc4..ee0fdc4 100644
--- a/karyons_p2p/src/peer/mod.rs
+++ b/p2p/src/peer/mod.rs
diff --git a/karyons_p2p/src/peer/peer_id.rs b/p2p/src/peer/peer_id.rs
index c8aec7d..c8aec7d 100644
--- a/karyons_p2p/src/peer/peer_id.rs
+++ b/p2p/src/peer/peer_id.rs
diff --git a/karyons_p2p/src/peer_pool.rs b/p2p/src/peer_pool.rs
index eac4d3d..eac4d3d 100644
--- a/karyons_p2p/src/peer_pool.rs
+++ b/p2p/src/peer_pool.rs
diff --git a/karyons_p2p/src/protocol.rs b/p2p/src/protocol.rs
index 515efc6..515efc6 100644
--- a/karyons_p2p/src/protocol.rs
+++ b/p2p/src/protocol.rs
diff --git a/karyons_p2p/src/protocols/mod.rs b/p2p/src/protocols/mod.rs
index 4a8f6b9..4a8f6b9 100644
--- a/karyons_p2p/src/protocols/mod.rs
+++ b/p2p/src/protocols/mod.rs
diff --git a/karyons_p2p/src/protocols/ping.rs b/p2p/src/protocols/ping.rs
index b337494..b337494 100644
--- a/karyons_p2p/src/protocols/ping.rs
+++ b/p2p/src/protocols/ping.rs
diff --git a/karyons_p2p/src/routing_table/bucket.rs b/p2p/src/routing_table/bucket.rs
index 13edd24..13edd24 100644
--- a/karyons_p2p/src/routing_table/bucket.rs
+++ b/p2p/src/routing_table/bucket.rs
diff --git a/karyons_p2p/src/routing_table/entry.rs b/p2p/src/routing_table/entry.rs
index b3f219f..b3f219f 100644
--- a/karyons_p2p/src/routing_table/entry.rs
+++ b/p2p/src/routing_table/entry.rs
diff --git a/karyons_p2p/src/routing_table/mod.rs b/p2p/src/routing_table/mod.rs
index abf9a08..abf9a08 100644
--- a/karyons_p2p/src/routing_table/mod.rs
+++ b/p2p/src/routing_table/mod.rs
diff --git a/karyons_p2p/src/utils/mod.rs b/p2p/src/utils/mod.rs
index e8ff9d0..e8ff9d0 100644
--- a/karyons_p2p/src/utils/mod.rs
+++ b/p2p/src/utils/mod.rs
diff --git a/karyons_p2p/src/utils/version.rs b/p2p/src/utils/version.rs
index 4986495..4986495 100644
--- a/karyons_p2p/src/utils/version.rs
+++ b/p2p/src/utils/version.rs
diff --git a/src/lib.rs b/src/lib.rs
deleted file mode 100644
index 8b13789..0000000
--- a/src/lib.rs
+++ /dev/null
@@ -1 +0,0 @@
-