aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhozan23 <hozan23@karyontech.net>2024-06-22 16:00:12 +0200
committerhozan23 <hozan23@karyontech.net>2024-06-22 16:00:12 +0200
commitb95bf6ce8ccc19d9702183574574d3721781a93a (patch)
tree9c4ea5e6fdf78045dc25136183dc726930e9259d
parenteed5fdb54cc261756c828d9c6bd1114e16ec6aa8 (diff)
bump version to 0.1.4
-rw-r--r--Cargo.lock12
-rw-r--r--Cargo.toml2
-rw-r--r--jsonrpc/Cargo.toml6
-rw-r--r--jsonrpc/README.md4
-rw-r--r--net/Cargo.toml4
-rw-r--r--net/async_rustls/src/lib.rs1
6 files changed, 14 insertions, 15 deletions
diff --git a/Cargo.lock b/Cargo.lock
index f7c4ef7..8773140 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -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",
diff --git a/Cargo.toml b/Cargo.toml
index 866e8e4..da8e042 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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};
-