Skip to content

Commit 5d4f6c7

Browse files
committed
chore: update to async-nats 0.38
Signed-off-by: Roman Volosatovs <[email protected]>
1 parent 511cef7 commit 5d4f6c7

File tree

6 files changed

+25
-12
lines changed

6 files changed

+25
-12
lines changed

Cargo.lock

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ wrpc-cli = { workspace = true, optional = true }
8181
wrpc-runtime-wasmtime = { workspace = true, optional = true }
8282
wrpc-transport = { workspace = true }
8383
wrpc-transport-nats = { workspace = true, features = [
84-
"async-nats-0_37",
84+
"async-nats-0_38",
8585
], optional = true }
8686
wrpc-transport-quic = { workspace = true, optional = true }
8787
wrpc-transport-web = { workspace = true, optional = true }
@@ -171,12 +171,12 @@ wit-bindgen-wrpc-rust = { version = "0.9", default-features = false, path = "./c
171171
wit-bindgen-wrpc-rust-macro = { version = "0.9", default-features = false, path = "./crates/wit-bindgen-rust-macro" }
172172
wit-component = { version = "0.219", default-features = false }
173173
wit-parser = { version = "0.219", default-features = false }
174-
wrpc-cli = { version = "0.4", path = "./crates/cli", default-features = false }
174+
wrpc-cli = { version = "0.5", path = "./crates/cli", default-features = false }
175175
wrpc-introspect = { version = "0.6", default-features = false, path = "./crates/introspect" }
176176
wrpc-runtime-wasmtime = { version = "0.25", path = "./crates/runtime-wasmtime", default-features = false }
177177
wrpc-test = { path = "./crates/test", default-features = false }
178178
wrpc-transport = { version = "0.28.3", path = "./crates/transport", default-features = false }
179-
wrpc-transport-nats = { version = "0.27.1", path = "./crates/transport-nats", default-features = false }
179+
wrpc-transport-nats = { version = "0.28", path = "./crates/transport-nats", default-features = false }
180180
wrpc-transport-quic = { version = "0.4", path = "./crates/transport-quic", default-features = false }
181181
wrpc-transport-web = { version = "0.1", path = "./crates/transport-web", default-features = false }
182182
wrpc-wasi-keyvalue = { version = "0.1.1", path = "./crates/wasi-keyvalue", default-features = false }

crates/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wrpc-cli"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
description = "wRPC CLI utilities"
55

66
authors.workspace = true

crates/transport-nats/Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wrpc-transport-nats"
3-
version = "0.27.1"
3+
version = "0.28.0"
44
description = "wRPC NATS transport"
55

66
authors.workspace = true
@@ -10,10 +10,13 @@ license.workspace = true
1010
repository.workspace = true
1111

1212
[features]
13-
default = ["async-nats-0_37"]
13+
default = ["async-nats-0_38"]
1414

1515
[dependencies]
1616
anyhow = { workspace = true, features = ["std"] }
17+
async-nats-0_38 = { package = "async-nats", version = "0.38", default-features = false, features = [
18+
"ring",
19+
], optional = true }
1720
async-nats-0_37 = { package = "async-nats", version = "0.37", default-features = false, features = [
1821
"ring",
1922
], optional = true }

crates/transport-nats/src/lib.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,22 @@
33
#![allow(clippy::type_complexity)]
44

55
#[cfg(any(
6-
not(any(feature = "async-nats-0_37", feature = "async-nats-0_36")),
7-
all(feature = "async-nats-0_37", feature = "async-nats-0_36")
6+
not(any(
7+
feature = "async-nats-0_38",
8+
feature = "async-nats-0_37",
9+
feature = "async-nats-0_36",
10+
)),
11+
all(feature = "async-nats-0_38", feature = "async-nats-0_37"),
12+
all(feature = "async-nats-0_38", feature = "async-nats-0_36"),
13+
all(feature = "async-nats-0_37", feature = "async-nats-0_36"),
814
))]
915
compile_error!(
10-
"Either feature \"async-nats-0_37\" or \"async-nats-0_36\" must be enabled for this crate."
16+
"Either feature \"async-nats-0_38\", \"async-nats-0_37\" or \"async-nats-0_36\" must be enabled for this crate."
1117
);
1218

19+
#[cfg(feature = "async-nats-0_38")]
20+
use async_nats_0_38 as async_nats;
21+
1322
#[cfg(feature = "async-nats-0_37")]
1423
use async_nats_0_37 as async_nats;
1524

crates/wasmtime-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ wasmtime-wasi = { workspace = true }
6060
wasmtime-wasi-http = { workspace = true }
6161
wit-component = { workspace = true }
6262
wrpc-cli = { workspace = true, features = ["nats"] }
63-
wrpc-transport-nats = { workspace = true, features = ["async-nats-0_37"] }
63+
wrpc-transport-nats = { workspace = true, features = ["async-nats-0_38"] }
6464
wrpc-transport = { workspace = true, features = ["net"] }
6565
wrpc-runtime-wasmtime = { workspace = true }

0 commit comments

Comments
 (0)