Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 70 additions & 70 deletions Cargo.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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

Expand Down Expand 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
Expand All @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion examples/rust/hello-component-tcp-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/rust/hello-http-tcp-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
2 changes: 1 addition & 1 deletion examples/rust/hello-quic-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion examples/rust/hello-quic-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion examples/rust/hello-tcp-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
2 changes: 1 addition & 1 deletion examples/rust/hello-tcp-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
2 changes: 1 addition & 1 deletion examples/rust/hello-unix-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
2 changes: 1 addition & 1 deletion examples/rust/hello-unix-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
2 changes: 1 addition & 1 deletion examples/rust/hello-web-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/rust/hello-web-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/rust/streams-quic-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion examples/rust/streams-quic-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion examples/rust/streams-tcp-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion examples/rust/streams-tcp-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion examples/rust/streams-web-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion examples/rust/streams-web-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion examples/rust/wasi-keyvalue-quic-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion examples/rust/wasi-keyvalue-quic-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion examples/rust/wasi-keyvalue-tcp-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion examples/rust/wasi-keyvalue-tcp-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions examples/rust/wasi-keyvalue-unix-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ clap = { workspace = true, features = [
"usage",
] }
tokio = { workspace = true, features = [
"macros",
"fs",
"rt-multi-thread",
"net",
Expand Down
2 changes: 1 addition & 1 deletion examples/rust/wasi-keyvalue-web-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading