diff options
-rw-r--r-- | Cargo.lock | 12 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | jsonrpc/Cargo.toml | 6 | ||||
-rw-r--r-- | jsonrpc/README.md | 4 | ||||
-rw-r--r-- | net/Cargo.toml | 4 | ||||
-rw-r--r-- | net/async_rustls/src/lib.rs | 1 |
6 files changed, 14 insertions, 15 deletions
@@ -1231,7 +1231,7 @@ dependencies = [ [[package]] name = "karyon_async_rustls" -version = "0.1.3" +version = "0.1.4" dependencies = [ "futures-rustls", "tokio-rustls", @@ -1239,7 +1239,7 @@ dependencies = [ [[package]] name = "karyon_core" -version = "0.1.3" +version = "0.1.4" dependencies = [ "async-channel 2.3.1", "async-process", @@ -1259,7 +1259,7 @@ dependencies = [ [[package]] name = "karyon_jsonrpc" -version = "0.1.3" +version = "0.1.4" dependencies = [ "async-channel 2.3.1", "async-trait", @@ -1278,7 +1278,7 @@ dependencies = [ [[package]] name = "karyon_jsonrpc_macro" -version = "0.1.3" +version = "0.1.4" dependencies = [ "proc-macro2", "quote", @@ -1288,7 +1288,7 @@ dependencies = [ [[package]] name = "karyon_net" -version = "0.1.3" +version = "0.1.4" dependencies = [ "async-channel 2.3.1", "async-trait", @@ -1309,7 +1309,7 @@ dependencies = [ [[package]] name = "karyon_p2p" -version = "0.1.3" +version = "0.1.4" dependencies = [ "async-channel 2.3.1", "async-std", @@ -6,7 +6,7 @@ members = ["core", "net", "p2p", "jsonrpc"] [workspace.package] description = "A library for building p2p, decentralized, and collaborative software" -version = "0.1.3" +version = "0.1.4" edition = "2021" homepage = "https://karyontech.net" repository = "https://github.com/karyontech/karyon" diff --git a/jsonrpc/Cargo.toml b/jsonrpc/Cargo.toml index 5a7c2ba..3c5bf17 100644 --- a/jsonrpc/Cargo.toml +++ b/jsonrpc/Cargo.toml @@ -30,10 +30,10 @@ tokio = [ ] [dependencies] -karyon_core = { version = "0.1.3", path = "../core", default-features = false } -karyon_net = { version = "0.1.3", path = "../net", default-features = false } +karyon_core = { version = "0.1.4", path = "../core", default-features = false } +karyon_net = { version = "0.1.4", path = "../net", default-features = false } -karyon_jsonrpc_macro = { version = "0.1.3", path = "jsonrpc_macro", default-features = false } +karyon_jsonrpc_macro = { version = "0.1.4", path = "jsonrpc_macro", default-features = false } log = "0.4.21" rand = "0.8.5" diff --git a/jsonrpc/README.md b/jsonrpc/README.md index ca0a212..83107d4 100644 --- a/jsonrpc/README.md +++ b/jsonrpc/README.md @@ -31,8 +31,7 @@ use serde_json::Value; use smol::stream::StreamExt; use karyon_jsonrpc::{ - RPCError, Server, Client, rpc_impl, rpc_pubsub_impl, message::SubscriptionID, - Channel + RPCError, Server, Client, rpc_impl, rpc_pubsub_impl, SubscriptionID, Channel }; struct HelloWorld {} @@ -126,6 +125,7 @@ async { }) .detach(); + // Unsubscribe after 5 seconds smol::Timer::after(std::time::Duration::from_secs(5)).await; client diff --git a/net/Cargo.toml b/net/Cargo.toml index 54cb19d..26edfa0 100644 --- a/net/Cargo.toml +++ b/net/Cargo.toml @@ -33,8 +33,8 @@ tokio = [ serde = ["dep:serde"] [dependencies] -karyon_core = { version = "0.1.3", path = "../core", default-features = false } -karyon_async_rustls = { version = "0.1.3", path = "./async_rustls", default-features = false, optional = true } +karyon_core = { version = "0.1.4", path = "../core", default-features = false } +karyon_async_rustls = { version = "0.1.4", path = "./async_rustls", default-features = false, optional = true } # utils log = "0.4.21" diff --git a/net/async_rustls/src/lib.rs b/net/async_rustls/src/lib.rs index 4365552..f60266a 100644 --- a/net/async_rustls/src/lib.rs +++ b/net/async_rustls/src/lib.rs @@ -9,4 +9,3 @@ pub use futures_rustls::{rustls, TlsAcceptor, TlsConnector, TlsStream}; #[cfg(feature = "tokio")] pub use tokio_rustls::{rustls, TlsAcceptor, TlsConnector, TlsStream}; - |