diff --git a/Cargo.lock b/Cargo.lock index bac659af4..4f6f0b988 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -493,27 +493,27 @@ dependencies = [ [[package]] name = "cranelift-assembler-x64" -version = "0.138.0-rc.1" +version = "0.138.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffc59783095ce0f8ddb9af2422f7c0af9a1be10ebd61ae26128cedb231102ab3" +checksum = "222b23ccf36fe36ee1b99adff2510bd3762cb47e7332542dd4e1cb9c3c84cbbb" dependencies = [ "cranelift-assembler-x64-meta", ] [[package]] name = "cranelift-assembler-x64-meta" -version = "0.138.0-rc.1" +version = "0.138.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8375e366701e3397adc5a81134e70dbc1484541a48cc5e794cbf59bcedec9e8" +checksum = "952c71136beac218e5080b31797dcf74a0aa36a12d32eba4583606ed4825dfe5" dependencies = [ "cranelift-srcgen", ] [[package]] name = "cranelift-bforest" -version = "0.138.0-rc.1" +version = "0.138.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "496bd88b12e7678d4985fe7326eb40d895c1f08d25420454a8ea988f63c1ad15" +checksum = "86ad6c0ef2b5f29d768c64107114579e53cbff031f73e7980460dd7b76be6cb3" dependencies = [ "cranelift-entity", "wasmtime-internal-core", @@ -521,9 +521,9 @@ dependencies = [ [[package]] name = "cranelift-bitset" -version = "0.138.0-rc.1" +version = "0.138.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ebeb641fe524cbfe114c8cb6360c07507fb351f753b16c6617fe3e05b3084e3" +checksum = "2f087c2d93f5f0a084213d61c1b3ba66530cbfc25a44dc9e9c058d6b542b110f" dependencies = [ "serde", "serde_derive", @@ -532,9 +532,9 @@ dependencies = [ [[package]] name = "cranelift-codegen" -version = "0.138.0-rc.1" +version = "0.138.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfd64aa9248dcba9434da432ae86b8d25d23b16cf0a6f1d9a583c2e98a18276e" +checksum = "2c21e04ef21284a7e1ee65bc8440e78bc63a1b500964978902ab3b0b05969ae3" dependencies = [ "bumpalo", "cranelift-assembler-x64", @@ -563,9 +563,9 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.138.0-rc.1" +version = "0.138.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "279c9c34931640c26d3d667a98810db1a0eeb6f1c852f1c129b69dc73564d6f8" +checksum = "73b3d4b111ce054571a6985bbff37c55aab40a04b968da00b3807675cec8c095" dependencies = [ "cranelift-assembler-x64-meta", "cranelift-codegen-shared", @@ -576,24 +576,24 @@ dependencies = [ [[package]] name = "cranelift-codegen-shared" -version = "0.138.0-rc.1" +version = "0.138.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52134a51b54394a6065651ffbc111dfd66149ae5d696b5f114a113e669129ecf" +checksum = "2e1aaed1dcf216d6eb0916982edd34403d21d5df9f360528e7a2b85203d760a7" [[package]] name = "cranelift-control" -version = "0.138.0-rc.1" +version = "0.138.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d032756eef35c0f490e68992066c1b2d6c6e61383ef45cf13cafd4f2b30fb60" +checksum = "ff1d071a686ae206a65ecc9a498d16d6926ecb6120f434c618de8cdccd255ae7" dependencies = [ "arbitrary", ] [[package]] name = "cranelift-entity" -version = "0.138.0-rc.1" +version = "0.138.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ebdb75af51a87b3bb3d3ddd01d2b43810fa2462c5d495980ff163203e1c0a5b" +checksum = "a51ab5d8ff3bbc6b7df0a3d3c6740e9af488fb5d38654ce1595f598d3da21456" dependencies = [ "cranelift-bitset", "serde", @@ -603,9 +603,9 @@ dependencies = [ [[package]] name = "cranelift-frontend" -version = "0.138.0-rc.1" +version = "0.138.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f9a90588ea9d07ebdc77e75f40d00722acc968a29adfebc936bd1866f011a70" +checksum = "39e025bb120162a1b60d010bbc3237ac1b99b466702b5ae42a974e91afcb9725" dependencies = [ "cranelift-codegen", "hashbrown 0.17.1", @@ -616,15 +616,15 @@ dependencies = [ [[package]] name = "cranelift-isle" -version = "0.138.0-rc.1" +version = "0.138.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ed624a59ddd36a2291dcb778a0b7495b8db4c67fc5276ec8b2f018bb1aca3a6" +checksum = "2bbcbc8f5ef440b5583ed19889b071cbac376b2b8f311d30fc95880876909df3" [[package]] name = "cranelift-native" -version = "0.138.0-rc.1" +version = "0.138.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c6a9838449254a89a6b040804177c546f68da25e893a53dd940620102abe345" +checksum = "535c9b6e5695d2afc1e14c69003d67890b743f695ef23c14124d21b8b67603a7" dependencies = [ "cranelift-codegen", "libc", @@ -634,9 +634,9 @@ dependencies = [ [[package]] name = "cranelift-srcgen" -version = "0.138.0-rc.1" +version = "0.138.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a4bb25f99483bae9140f93014bb79fce0f53f91701a9c80bd7da6a40f45d97b" +checksum = "d1f395483422e6a1961f5e07cc8e200391f3766a5b33b240303c65b301df857c" [[package]] name = "crc32fast" @@ -868,7 +868,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -2085,9 +2085,9 @@ dependencies = [ [[package]] name = "pulley-interpreter" -version = "51.0.0-rc.1" +version = "51.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6aebd68d98d4229beafd1c0a474097cd388163b11f2b588aa7e25ed46ebf7bb6" +checksum = "88041152fc3b051ca485e63b8d6af0b011a245db84b2825a37535eff8522ca71" dependencies = [ "cranelift-bitset", "log", @@ -2097,9 +2097,9 @@ dependencies = [ [[package]] name = "pulley-macros" -version = "51.0.0-rc.1" +version = "51.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f55487823d239e1b486a9f7851e34d62a1026e3670c32819bb44c55ebffe5c5d" +checksum = "604be86dfb7018c1c487e683e495f07bc7a4eeb3e1d35bba27d294a4c74464b7" dependencies = [ "proc-macro2", "quote", @@ -2161,7 +2161,7 @@ dependencies = [ "once_cell", "socket2", "tracing", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -2436,7 +2436,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -2504,7 +2504,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -2931,7 +2931,7 @@ dependencies = [ "fastrand", "once_cell", "rustix", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -3747,9 +3747,9 @@ dependencies = [ [[package]] name = "wasmtime" -version = "51.0.0-rc.1" +version = "51.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea5707d758adc8b7e081922b3d4d87d85f4df561b03ce4aaa27e68dc10a452cd" +checksum = "d821735a5b127d45a1777bd8eeb8a97d5f66ea1e2c93b8d71f9037f6fd910ef2" dependencies = [ "addr2line", "async-trait", @@ -3799,9 +3799,9 @@ dependencies = [ [[package]] name = "wasmtime-cli-flags" -version = "51.0.0-rc.1" +version = "51.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "606afab18b463a69317bb2fea7ba3795b9783ade68ca75727aaaf065bf6853d7" +checksum = "2fe7af102a9b282a19d3f9bb3c13514f070e7ad496a662463c6672402372ee3e" dependencies = [ "rayon", "wasmtime", @@ -3809,9 +3809,9 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "51.0.0-rc.1" +version = "51.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11b07448ada6e0bae4a4645b7983315c319a5a0b8286dd80398e9e6f0f5fddef" +checksum = "6c1bfdccfa80c735f83559a2dcad18b8510b2b49322151af5830f3ebcd3365e7" dependencies = [ "anyhow", "cpp_demangle", @@ -3839,9 +3839,9 @@ dependencies = [ [[package]] name = "wasmtime-internal-cache" -version = "51.0.0-rc.1" +version = "51.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98aa1c4fcbf2c05307547095201094cb72a47a31c492d8591379aaaef3ef4f2e" +checksum = "9054eda7bf9f4db325851eacc2bf2b73afd14e5cb0fdf95910492ea0df384996" dependencies = [ "base64 0.22.1", "directories", @@ -3859,9 +3859,9 @@ dependencies = [ [[package]] name = "wasmtime-internal-component-macro" -version = "51.0.0-rc.1" +version = "51.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62a9909f3b06b0fd5c780a233b7dac71c0f02666b05abcb3e4ce45bee3a0a4ff" +checksum = "46991631dcc41f74783fc8cf3fa1d6f5684a676fdc67ab5710731e48d4a4e183" dependencies = [ "anyhow", "proc-macro2", @@ -3874,15 +3874,15 @@ dependencies = [ [[package]] name = "wasmtime-internal-component-util" -version = "51.0.0-rc.1" +version = "51.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c524248dd35b49a5f9790406ef9d468560b5a7b176b02b4610d29acffb4a047a" +checksum = "df5c080e39583056af5ed1a31d3909f35abc4d9b39b99dd90d944aae5e881844" [[package]] name = "wasmtime-internal-core" -version = "51.0.0-rc.1" +version = "51.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afd6f24e32c187262610b999951eb83659dc5d88aa0f6c61bb71e68e14823ea5" +checksum = "dd7abb27d389eee2f4e477c25d40a47bb837a08571bf0262c07aebe634e28774" dependencies = [ "anyhow", "hashbrown 0.17.1", @@ -3892,9 +3892,9 @@ dependencies = [ [[package]] name = "wasmtime-internal-cranelift" -version = "51.0.0-rc.1" +version = "51.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00e825eed7bd8cf6a1530cdccdb6529eaab5d7733adc3c30f14cd2f004699ff5" +checksum = "54a3749d4a805123e309490126076aaa569cb4d1a14b8c5427c12581872b5dd9" dependencies = [ "cranelift-codegen", "cranelift-control", @@ -3918,9 +3918,9 @@ dependencies = [ [[package]] name = "wasmtime-internal-fiber" -version = "51.0.0-rc.1" +version = "51.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "490d9cc95a75cc87db2bba41636b2a8728b1dbc3d325ad6ed08db87f63b3067b" +checksum = "2a8568765ad037ed2f932f973d07bcf2f8a9dfa4d3e8551f1b3316b89e2e234a" dependencies = [ "cc", "libc", @@ -3932,9 +3932,9 @@ dependencies = [ [[package]] name = "wasmtime-internal-jit-debug" -version = "51.0.0-rc.1" +version = "51.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b74a0d95fb63d64d187c665f0cf868d649a0f93b1cdefad89feb1647d0d4fc9" +checksum = "57b1160c1cf0a385348edc2aebaf68c12eedde551b3733d66c1d6ff92c4364e2" dependencies = [ "cc", "object", @@ -3944,9 +3944,9 @@ dependencies = [ [[package]] name = "wasmtime-internal-jit-icache-coherence" -version = "51.0.0-rc.1" +version = "51.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "423f8dff0eb07c394cc11ee8e4d302f141e0d6960bf736affcc303b2093bedbc" +checksum = "99bd6ba74430c9557a7ef8639f9b974cbdd52f8c1d07f2a61dc1b882e2d3b5be" dependencies = [ "libc", "wasmtime-internal-core", @@ -3955,9 +3955,9 @@ dependencies = [ [[package]] name = "wasmtime-internal-unwinder" -version = "51.0.0-rc.1" +version = "51.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40d20fc1003af050027b5b877df5ebb4f2ae3815df96b420a18c69c0ff94850e" +checksum = "a0896123c430d063ba957dbe4c937740d3368c4877ecb208990d8f214cf1c4a9" dependencies = [ "cranelift-codegen", "log", @@ -3967,9 +3967,9 @@ dependencies = [ [[package]] name = "wasmtime-internal-versioned-export-macros" -version = "51.0.0-rc.1" +version = "51.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aa1d7684124421c4b57aec95c77b05bc79471f8afd8b851f1b0da19c165a30a" +checksum = "983bf354b2639caef97cce4cacd445298b3c5c1e1021c8dbc1a162d9085c04de" dependencies = [ "proc-macro2", "quote", @@ -3978,9 +3978,9 @@ dependencies = [ [[package]] name = "wasmtime-internal-wit-bindgen" -version = "51.0.0-rc.1" +version = "51.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34ddc5e33abeecd42538c005a4638063084bfab010b6cbcde4d0f93fc96e3878" +checksum = "c48fd824219316d39b0fa67a21329ad8f8940bf851fd726641a0a7bf1fbb9b35" dependencies = [ "anyhow", "bitflags", @@ -3992,9 +3992,9 @@ dependencies = [ [[package]] name = "wasmtime-wasi" -version = "51.0.0-rc.1" +version = "51.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6472e9ff0d0bb70fc6d6d7af0cc15db1202aea53f0c12b3c7c43d8fe68dd9e1" +checksum = "978237681ef304c8c0b2de96dee2c3afe7cfdf44a84add8a6e8a890588bb0a39" dependencies = [ "async-trait", "bitflags", @@ -4015,9 +4015,9 @@ dependencies = [ [[package]] name = "wasmtime-wasi-http" -version = "51.0.0-rc.1" +version = "51.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20f4a3bf7c8e4761d6e46eaa71c8e7740d0bc71a770573f046ec453f844f3ddf" +checksum = "58336050f9709a589122f1f63428dd11bced3e8fbebba8367d3370fff0f06e9c" dependencies = [ "async-trait", "bytes", @@ -4041,9 +4041,9 @@ dependencies = [ [[package]] name = "wasmtime-wasi-io" -version = "51.0.0-rc.1" +version = "51.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e46377bf07de32ef8c8c3c039b7b12c2721e4bbd07830848633116e27b709f7f" +checksum = "10112231bebe4ed75c2f9c6a999b49f1622b62f0e491c3531852172d0f797472" dependencies = [ "async-trait", "bytes", @@ -4178,7 +4178,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index b6e6d7bec..9dc83dc5d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -184,10 +184,10 @@ wasi-preview1-component-adapter-provider = { version = "50", default-features = wasm-tokio = { version = "0.9.1", default-features = false } wasm-wave = { version = "0.263", default-features = false } wasmparser = { version = "0.263", default-features = false } -wasmtime = { version = "51.0.0-rc.1", default-features = false } -wasmtime-cli-flags = { version = "51.0.0-rc.1", default-features = false } -wasmtime-wasi = { version = "51.0.0-rc.1", default-features = false } -wasmtime-wasi-http = { version = "51.0.0-rc.1", default-features = false } +wasmtime = { version = "51", default-features = false } +wasmtime-cli-flags = { version = "51", default-features = false } +wasmtime-wasi = { version = "51", default-features = false } +wasmtime-wasi-http = { version = "51", default-features = false } web-transport-quinn = { version = "0.13.5", default-features = false } wit-bindgen = { version = "0.60", default-features = false } wit-bindgen-core = { version = "0.60", default-features = false } diff --git a/README.md b/README.md index f94defa9f..634fb2f8b 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ wRPC supports both dynamic (based on e.g. runtime WebAssembly component type int For static use cases, wRPC provides [WIT] binding generators for: - Rust - Go +- JavaScript wRPC fully supports the unreleased native [WIT] `stream` and `future` data types along with all currently released WIT functionality. @@ -71,7 +72,7 @@ There are 2 different kinds of examples: ### Requirements -- For Rust components and wRPC applications: `rust` >= 1.93 +- For Rust components and wRPC applications: `rust` >= 1.97 Nix users can run `nix develop` anywhere in the repository to get all dependencies correctly set up @@ -108,9 +109,6 @@ We will use the following two Rust wRPC applications using TCP transport: wrpc-wasmtime tcp serve ./target/wasm32-wasip2/release/hello_component_server.wasm ``` - - Sample output: - > INFO wrpc_wasmtime_cli: serving instance function name="hello" - 2. Call the Wasm `hello` server using a native wRPC `hello` client via TCP: ```sh @@ -121,9 +119,7 @@ We will use the following two Rust wRPC applications using TCP transport: >hello from Rust - Sample output in the server: - > INFO wrpc_wasmtime_cli: serving instance function invocation - > - > INFO wrpc_wasmtime_cli: successfully served instance function invocation + > INFO wrpc_wasmtime_cli: accepted connection addr=[::1]:57238 3. Serve native wRPC `hello` server via TCP: diff --git a/examples/rust/hello-component-tcp-proxy/Cargo.toml b/examples/rust/hello-component-tcp-proxy/Cargo.toml index 10cef1e60..108419a5c 100644 --- a/examples/rust/hello-component-tcp-proxy/Cargo.toml +++ b/examples/rust/hello-component-tcp-proxy/Cargo.toml @@ -22,7 +22,7 @@ clap = { workspace = true, features = [ "suggestions", "usage", ] } -tokio = { workspace = true, features = ["rt"] } +tokio = { workspace = true, features = ["macros", "rt"] } tracing = { workspace = true } tracing-subscriber = { workspace = true, features = ["ansi", "fmt"] } wasi = { workspace = true, features = ["std"] } diff --git a/examples/rust/hello-http-tcp-proxy/Cargo.toml b/examples/rust/hello-http-tcp-proxy/Cargo.toml index 07c558929..2cd263c14 100644 --- a/examples/rust/hello-http-tcp-proxy/Cargo.toml +++ b/examples/rust/hello-http-tcp-proxy/Cargo.toml @@ -21,7 +21,7 @@ clap = { workspace = true, features = [ http = { workspace = true } hyper = { workspace = true } hyper-util = { workspace = true, features = ["http1", "http2", "server", "tokio"] } -tokio = { workspace = true, features = ["net", "rt-multi-thread"] } +tokio = { workspace = true, features = ["macros", "net", "rt-multi-thread"] } tracing = { workspace = true } tracing-subscriber = { workspace = true, features = ["ansi", "fmt"] } wit-bindgen-wrpc = { workspace = true } diff --git a/examples/rust/hello-quic-client/Cargo.toml b/examples/rust/hello-quic-client/Cargo.toml index f4afd473a..26d7fbb46 100644 --- a/examples/rust/hello-quic-client/Cargo.toml +++ b/examples/rust/hello-quic-client/Cargo.toml @@ -30,7 +30,7 @@ quinn = { workspace = true, features = [ ] } rcgen = { workspace = true, features = ["crypto", "ring", "zeroize"] } rustls = { workspace = true } -tokio = { workspace = true, features = ["rt-multi-thread", "signal"] } +tokio = { workspace = true, features = ["macros", "rt-multi-thread", "signal"] } tracing = { workspace = true } tracing-subscriber = { workspace = true, features = [ "ansi", diff --git a/examples/rust/hello-quic-server/Cargo.toml b/examples/rust/hello-quic-server/Cargo.toml index 1856a733e..35f24ea6e 100644 --- a/examples/rust/hello-quic-server/Cargo.toml +++ b/examples/rust/hello-quic-server/Cargo.toml @@ -29,7 +29,7 @@ quinn = { workspace = true, features = [ ] } rcgen = { workspace = true, features = ["crypto", "ring", "zeroize"] } rustls = { workspace = true } -tokio = { workspace = true, features = ["rt-multi-thread", "signal"] } +tokio = { workspace = true, features = ["macros", "rt-multi-thread", "signal"] } tracing = { workspace = true } tracing-subscriber = { workspace = true, features = [ "ansi", diff --git a/examples/rust/hello-tcp-client/Cargo.toml b/examples/rust/hello-tcp-client/Cargo.toml index 9c99e7a17..ab8443f95 100644 --- a/examples/rust/hello-tcp-client/Cargo.toml +++ b/examples/rust/hello-tcp-client/Cargo.toml @@ -19,6 +19,6 @@ clap = { workspace = true, features = [ "suggestions", "usage", ] } -tokio = { workspace = true, features = ["net", "rt-multi-thread"] } +tokio = { workspace = true, features = ["macros", "net", "rt-multi-thread"] } tracing-subscriber = { workspace = true, features = ["ansi", "fmt"] } wit-bindgen-wrpc = { workspace = true } diff --git a/examples/rust/hello-tcp-server/Cargo.toml b/examples/rust/hello-tcp-server/Cargo.toml index 85e421ed8..d5a4656c8 100644 --- a/examples/rust/hello-tcp-server/Cargo.toml +++ b/examples/rust/hello-tcp-server/Cargo.toml @@ -19,7 +19,7 @@ clap = { workspace = true, features = [ "suggestions", "usage", ] } -tokio = { workspace = true, features = ["rt-multi-thread", "signal", "net"] } +tokio = { workspace = true, features = ["macros", "rt-multi-thread", "signal", "net"] } tracing = { workspace = true } tracing-subscriber = { workspace = true, features = ["ansi", "fmt"] } wit-bindgen-wrpc = { workspace = true } diff --git a/examples/rust/hello-unix-client/Cargo.toml b/examples/rust/hello-unix-client/Cargo.toml index df72c2c60..5bb9b1cfd 100644 --- a/examples/rust/hello-unix-client/Cargo.toml +++ b/examples/rust/hello-unix-client/Cargo.toml @@ -19,6 +19,6 @@ clap = { workspace = true, features = [ "suggestions", "usage", ] } -tokio = { workspace = true, features = ["net", "rt-multi-thread"] } +tokio = { workspace = true, features = ["macros", "net", "rt-multi-thread"] } tracing-subscriber = { workspace = true, features = ["ansi", "fmt"] } wit-bindgen-wrpc = { workspace = true } diff --git a/examples/rust/hello-unix-server/Cargo.toml b/examples/rust/hello-unix-server/Cargo.toml index 5e5130148..b1f48ccd5 100644 --- a/examples/rust/hello-unix-server/Cargo.toml +++ b/examples/rust/hello-unix-server/Cargo.toml @@ -19,7 +19,7 @@ clap = { workspace = true, features = [ "suggestions", "usage", ] } -tokio = { workspace = true, features = ["fs", "rt-multi-thread", "net", "signal"] } +tokio = { workspace = true, features = ["macros", "fs", "rt-multi-thread", "net", "signal"] } tracing = { workspace = true } tracing-subscriber = { workspace = true, features = ["ansi", "fmt"] } wit-bindgen-wrpc = { workspace = true } diff --git a/examples/rust/hello-web-client/Cargo.toml b/examples/rust/hello-web-client/Cargo.toml index 208eac441..438756d0d 100644 --- a/examples/rust/hello-web-client/Cargo.toml +++ b/examples/rust/hello-web-client/Cargo.toml @@ -19,7 +19,7 @@ clap = { workspace = true, features = [ "suggestions", "usage", ] } -tokio = { workspace = true, features = ["rt-multi-thread"] } +tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } tracing-subscriber = { workspace = true, features = ["ansi", "fmt"] } url = { workspace = true } web-transport-quinn = { workspace = true, features = ["ring"] } diff --git a/examples/rust/hello-web-server/Cargo.toml b/examples/rust/hello-web-server/Cargo.toml index f67872363..89d860f6f 100644 --- a/examples/rust/hello-web-server/Cargo.toml +++ b/examples/rust/hello-web-server/Cargo.toml @@ -21,7 +21,7 @@ clap = { workspace = true, features = [ ] } rcgen = { workspace = true, features = ["crypto", "ring", "zeroize"] } rustls = { workspace = true } -tokio = { workspace = true, features = ["rt-multi-thread", "signal", "net"] } +tokio = { workspace = true, features = ["macros", "rt-multi-thread", "signal", "net"] } tracing = { workspace = true } tracing-subscriber = { workspace = true, features = ["ansi", "fmt"] } web-transport-quinn = { workspace = true, features = ["ring"] } diff --git a/examples/rust/streams-quic-client/Cargo.toml b/examples/rust/streams-quic-client/Cargo.toml index 6235b8499..c584f0062 100644 --- a/examples/rust/streams-quic-client/Cargo.toml +++ b/examples/rust/streams-quic-client/Cargo.toml @@ -30,7 +30,7 @@ quinn = { workspace = true, features = [ ] } rcgen = { workspace = true, features = ["crypto", "ring", "zeroize"] } rustls = { workspace = true } -tokio = { workspace = true, features = ["rt-multi-thread", "signal"] } +tokio = { workspace = true, features = ["macros", "rt-multi-thread", "signal"] } tokio-stream = { workspace = true, features = ["time"] } tracing = { workspace = true } tracing-subscriber = { workspace = true, features = [ diff --git a/examples/rust/streams-quic-server/Cargo.toml b/examples/rust/streams-quic-server/Cargo.toml index 8cab2f294..21973c8f9 100644 --- a/examples/rust/streams-quic-server/Cargo.toml +++ b/examples/rust/streams-quic-server/Cargo.toml @@ -30,7 +30,7 @@ quinn = { workspace = true, features = [ ] } rcgen = { workspace = true, features = ["crypto", "ring", "zeroize"] } rustls = { workspace = true } -tokio = { workspace = true, features = ["rt-multi-thread", "signal"] } +tokio = { workspace = true, features = ["macros", "rt-multi-thread", "signal"] } tracing = { workspace = true } tracing-subscriber = { workspace = true, features = [ "ansi", diff --git a/examples/rust/streams-tcp-client/Cargo.toml b/examples/rust/streams-tcp-client/Cargo.toml index e80ab18b5..16954cc6f 100644 --- a/examples/rust/streams-tcp-client/Cargo.toml +++ b/examples/rust/streams-tcp-client/Cargo.toml @@ -21,7 +21,7 @@ clap = { workspace = true, features = [ "usage", ] } futures = { workspace = true } -tokio = { workspace = true, features = ["net", "rt-multi-thread"] } +tokio = { workspace = true, features = ["macros", "net", "rt-multi-thread"] } tokio-stream = { workspace = true, features = ["time"] } tracing = { workspace = true } tracing-subscriber = { workspace = true, features = [ diff --git a/examples/rust/streams-tcp-server/Cargo.toml b/examples/rust/streams-tcp-server/Cargo.toml index 98644f5f2..e64c1b347 100644 --- a/examples/rust/streams-tcp-server/Cargo.toml +++ b/examples/rust/streams-tcp-server/Cargo.toml @@ -21,7 +21,7 @@ clap = { workspace = true, features = [ "usage", ] } futures = { workspace = true } -tokio = { workspace = true, features = ["net", "rt-multi-thread", "signal"] } +tokio = { workspace = true, features = ["macros", "net", "rt-multi-thread", "signal"] } tracing = { workspace = true } tracing-subscriber = { workspace = true, features = [ "ansi", diff --git a/examples/rust/streams-web-client/Cargo.toml b/examples/rust/streams-web-client/Cargo.toml index 78061718b..2d69eb6d7 100644 --- a/examples/rust/streams-web-client/Cargo.toml +++ b/examples/rust/streams-web-client/Cargo.toml @@ -21,7 +21,7 @@ clap = { workspace = true, features = [ "usage", ] } futures = { workspace = true } -tokio = { workspace = true, features = ["rt-multi-thread"] } +tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } tokio-stream = { workspace = true, features = ["time"] } tracing = { workspace = true } tracing-subscriber = { workspace = true, features = [ diff --git a/examples/rust/streams-web-server/Cargo.toml b/examples/rust/streams-web-server/Cargo.toml index 2a687c7a5..a4eae4343 100644 --- a/examples/rust/streams-web-server/Cargo.toml +++ b/examples/rust/streams-web-server/Cargo.toml @@ -23,7 +23,7 @@ clap = { workspace = true, features = [ futures = { workspace = true } rcgen = { workspace = true, features = ["crypto", "ring", "zeroize"] } rustls = { workspace = true } -tokio = { workspace = true, features = ["net", "rt-multi-thread", "signal"] } +tokio = { workspace = true, features = ["macros", "net", "rt-multi-thread", "signal"] } tracing = { workspace = true } tracing-subscriber = { workspace = true, features = [ "ansi", diff --git a/examples/rust/wasi-keyvalue-quic-client/Cargo.toml b/examples/rust/wasi-keyvalue-quic-client/Cargo.toml index 26475e4b6..cd12ef482 100644 --- a/examples/rust/wasi-keyvalue-quic-client/Cargo.toml +++ b/examples/rust/wasi-keyvalue-quic-client/Cargo.toml @@ -29,7 +29,7 @@ quinn = { workspace = true, features = [ ] } rcgen = { workspace = true, features = ["crypto", "ring", "zeroize"] } rustls = { workspace = true } -tokio = { workspace = true, features = ["rt-multi-thread", "signal"] } +tokio = { workspace = true, features = ["macros", "rt-multi-thread", "signal"] } tracing = { workspace = true } tracing-subscriber = { workspace = true, features = [ "ansi", diff --git a/examples/rust/wasi-keyvalue-quic-server/Cargo.toml b/examples/rust/wasi-keyvalue-quic-server/Cargo.toml index b2b6815a2..13cc92cc6 100644 --- a/examples/rust/wasi-keyvalue-quic-server/Cargo.toml +++ b/examples/rust/wasi-keyvalue-quic-server/Cargo.toml @@ -29,7 +29,7 @@ quinn = { workspace = true, features = [ ] } rcgen = { workspace = true, features = ["crypto", "ring", "zeroize"] } rustls = { workspace = true } -tokio = { workspace = true, features = ["rt-multi-thread", "signal"] } +tokio = { workspace = true, features = ["macros", "rt-multi-thread", "signal"] } tracing = { workspace = true } tracing-subscriber = { workspace = true, features = [ "ansi", diff --git a/examples/rust/wasi-keyvalue-tcp-client/Cargo.toml b/examples/rust/wasi-keyvalue-tcp-client/Cargo.toml index 570f3227b..2d573f2a0 100644 --- a/examples/rust/wasi-keyvalue-tcp-client/Cargo.toml +++ b/examples/rust/wasi-keyvalue-tcp-client/Cargo.toml @@ -20,7 +20,7 @@ clap = { workspace = true, features = [ "suggestions", "usage", ] } -tokio = { workspace = true, features = ["net", "rt-multi-thread"] } +tokio = { workspace = true, features = ["macros", "net", "rt-multi-thread"] } tracing-subscriber = { workspace = true, features = [ "ansi", "env-filter", diff --git a/examples/rust/wasi-keyvalue-tcp-server/Cargo.toml b/examples/rust/wasi-keyvalue-tcp-server/Cargo.toml index 822ab73f9..b55fad6b9 100644 --- a/examples/rust/wasi-keyvalue-tcp-server/Cargo.toml +++ b/examples/rust/wasi-keyvalue-tcp-server/Cargo.toml @@ -20,7 +20,7 @@ clap = { workspace = true, features = [ "suggestions", "usage", ] } -tokio = { workspace = true, features = ["rt-multi-thread", "net", "signal"] } +tokio = { workspace = true, features = ["macros", "rt-multi-thread", "net", "signal"] } tracing = { workspace = true } tracing-subscriber = { workspace = true, features = [ "ansi", diff --git a/examples/rust/wasi-keyvalue-unix-server/Cargo.toml b/examples/rust/wasi-keyvalue-unix-server/Cargo.toml index 299d5b8ea..2449ad8af 100644 --- a/examples/rust/wasi-keyvalue-unix-server/Cargo.toml +++ b/examples/rust/wasi-keyvalue-unix-server/Cargo.toml @@ -21,6 +21,7 @@ clap = { workspace = true, features = [ "usage", ] } tokio = { workspace = true, features = [ + "macros", "fs", "rt-multi-thread", "net", diff --git a/examples/rust/wasi-keyvalue-web-server/Cargo.toml b/examples/rust/wasi-keyvalue-web-server/Cargo.toml index 8a876b364..057fc2b41 100644 --- a/examples/rust/wasi-keyvalue-web-server/Cargo.toml +++ b/examples/rust/wasi-keyvalue-web-server/Cargo.toml @@ -22,7 +22,7 @@ clap = { workspace = true, features = [ ] } rcgen = { workspace = true, features = ["crypto", "ring", "zeroize"] } rustls = { workspace = true } -tokio = { workspace = true, features = ["rt-multi-thread", "signal"] } +tokio = { workspace = true, features = ["macros", "rt-multi-thread", "signal"] } tracing = { workspace = true } tracing-subscriber = { workspace = true, features = [ "ansi",