Skip to content

Commit 6603bd7

Browse files
committed
chore: bump async-nats
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
1 parent 8acee9b commit 6603bd7

13 files changed

Lines changed: 126 additions & 29 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 4 additions & 4 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_39",
84+
"async-nats-0_41",
8585
], optional = true }
8686
wrpc-transport-quic = { workspace = true, optional = true }
8787
wrpc-transport-web = { workspace = true, optional = true }
@@ -120,7 +120,7 @@ wrpc-transport = { workspace = true, features = ["net"] }
120120

121121
[workspace.dependencies]
122122
anyhow = { version = "1", default-features = false }
123-
async-nats = { version = "0.39", default-features = false }
123+
async-nats = { version = "0.41", default-features = false }
124124
axum = { version = "0.7", default-features = false }
125125
bitflags = { version = "2", default-features = false }
126126
bytes = { version = "1", default-features = false }
@@ -175,12 +175,12 @@ wit-bindgen-wrpc-rust = { version = "0.9", default-features = false, path = "./c
175175
wit-bindgen-wrpc-rust-macro = { version = "0.9", default-features = false, path = "./crates/wit-bindgen-rust-macro" }
176176
wit-component = { version = "0.230", default-features = false }
177177
wit-parser = { version = "0.220", default-features = false }
178-
wrpc-cli = { version = "0.5", path = "./crates/cli", default-features = false }
178+
wrpc-cli = { version = "0.6", path = "./crates/cli", default-features = false }
179179
wrpc-introspect = { version = "0.6", default-features = false, path = "./crates/introspect" }
180180
wrpc-runtime-wasmtime = { version = "0.29", path = "./crates/runtime-wasmtime", default-features = false }
181181
wrpc-test = { path = "./crates/test", default-features = false }
182182
wrpc-transport = { version = "0.28.3", path = "./crates/transport", default-features = false }
183-
wrpc-transport-nats = { version = "0.28", path = "./crates/transport-nats", default-features = false }
183+
wrpc-transport-nats = { version = "0.29", path = "./crates/transport-nats", default-features = false }
184184
wrpc-transport-quic = { version = "0.4", path = "./crates/transport-quic", default-features = false }
185185
wrpc-transport-web = { version = "0.1", path = "./crates/transport-web", default-features = false }
186186
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.5.0"
3+
version = "0.6.0"
44
description = "wRPC CLI utilities"
55

66
authors.workspace = true

crates/transport-nats/Cargo.toml

Lines changed: 8 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.28.1"
3+
version = "0.29.0"
44
description = "wRPC NATS transport"
55

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

1212
[features]
13-
default = ["async-nats-0_39"]
13+
default = ["async-nats-0_41"]
1414

1515
[dependencies]
1616
anyhow = { workspace = true, features = ["std"] }
17+
async-nats-0_41 = { package = "async-nats", version = "0.41", default-features = false, features = [
18+
"ring",
19+
], optional = true }
20+
async-nats-0_40 = { package = "async-nats", version = "0.40", default-features = false, features = [
21+
"ring",
22+
], optional = true }
1723
async-nats-0_39 = { package = "async-nats", version = "0.39", default-features = false, features = [
1824
"ring",
1925
], optional = true }

crates/transport-nats/src/lib.rs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,22 @@
44

55
#[cfg(any(
66
not(any(
7+
feature = "async-nats-0_41",
8+
feature = "async-nats-0_40",
79
feature = "async-nats-0_39",
810
feature = "async-nats-0_38",
911
feature = "async-nats-0_37",
1012
feature = "async-nats-0_36",
1113
)),
14+
all(feature = "async-nats-0_41", feature = "async-nats-0_40"),
15+
all(feature = "async-nats-0_41", feature = "async-nats-0_39"),
16+
all(feature = "async-nats-0_41", feature = "async-nats-0_38"),
17+
all(feature = "async-nats-0_41", feature = "async-nats-0_37"),
18+
all(feature = "async-nats-0_41", feature = "async-nats-0_36"),
19+
all(feature = "async-nats-0_40", feature = "async-nats-0_39"),
20+
all(feature = "async-nats-0_40", feature = "async-nats-0_38"),
21+
all(feature = "async-nats-0_40", feature = "async-nats-0_37"),
22+
all(feature = "async-nats-0_40", feature = "async-nats-0_36"),
1223
all(feature = "async-nats-0_39", feature = "async-nats-0_38"),
1324
all(feature = "async-nats-0_39", feature = "async-nats-0_37"),
1425
all(feature = "async-nats-0_39", feature = "async-nats-0_36"),
@@ -17,9 +28,15 @@
1728
all(feature = "async-nats-0_37", feature = "async-nats-0_36"),
1829
))]
1930
compile_error!(
20-
"Either feature \"async-nats-0_39\", \"async-nats-0_38\", \"async-nats-0_37\" or \"async-nats-0_36\" must be enabled for this crate."
31+
"Either feature \"async-nats-0_41\", \"async-nats-0_40\", \"async-nats-0_39\", \"async-nats-0_38\", \"async-nats-0_37\" or \"async-nats-0_36\" must be enabled for this crate."
2132
);
2233

34+
#[cfg(feature = "async-nats-0_41")]
35+
use async_nats_0_41 as async_nats;
36+
37+
#[cfg(feature = "async-nats-0_40")]
38+
use async_nats_0_40 as async_nats;
39+
2340
#[cfg(feature = "async-nats-0_39")]
2441
use async_nats_0_39 as async_nats;
2542

crates/wasmtime-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ wasmtime-wasi = { workspace = true }
6767
wasmtime-wasi-http = { workspace = true }
6868
wit-component = { workspace = true }
6969
wrpc-cli = { workspace = true, features = ["nats"] }
70-
wrpc-transport-nats = { workspace = true, features = ["async-nats-0_39"] }
70+
wrpc-transport-nats = { workspace = true, features = ["async-nats-0_41"] }
7171
wrpc-transport = { workspace = true, features = ["net"] }
7272
wrpc-runtime-wasmtime = { workspace = true }

examples/rust/hello-nats-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ tokio = { workspace = true, features = ["rt-multi-thread"] }
2424
tracing-subscriber = { workspace = true, features = ["ansi", "fmt"] }
2525
url = { workspace = true }
2626
wit-bindgen-wrpc = { workspace = true }
27-
wrpc-transport-nats = { workspace = true, features = ["async-nats-0_39"] }
27+
wrpc-transport-nats = { workspace = true, features = ["async-nats-0_41"] }

examples/rust/hello-nats-server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ tracing = { workspace = true }
2626
tracing-subscriber = { workspace = true, features = ["ansi", "fmt"] }
2727
url = { workspace = true }
2828
wit-bindgen-wrpc = { workspace = true }
29-
wrpc-transport-nats = { workspace = true, features = ["async-nats-0_39"] }
29+
wrpc-transport-nats = { workspace = true, features = ["async-nats-0_41"] }

examples/rust/streams-nats-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ tracing-subscriber = { workspace = true, features = [
3232
] }
3333
url = { workspace = true }
3434
wit-bindgen-wrpc = { workspace = true }
35-
wrpc-transport-nats = { workspace = true, features = ["async-nats-0_39"] }
35+
wrpc-transport-nats = { workspace = true, features = ["async-nats-0_41"] }

examples/rust/streams-nats-server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ tracing-subscriber = { workspace = true, features = [
3131
] }
3232
url = { workspace = true }
3333
wit-bindgen-wrpc = { workspace = true }
34-
wrpc-transport-nats = { workspace = true, features = ["async-nats-0_39"] }
34+
wrpc-transport-nats = { workspace = true, features = ["async-nats-0_41"] }

0 commit comments

Comments
 (0)