Skip to content

Commit 6501635

Browse files
committed
feat(rpc): implement wasmtime_rpc::link_function
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
1 parent 9f69578 commit 6501635

File tree

9 files changed

+1198
-0
lines changed

9 files changed

+1198
-0
lines changed

Cargo.lock

Lines changed: 69 additions & 0 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ members = [
136136
"crates/bench-api",
137137
"crates/c-api/artifact",
138138
"crates/environ/fuzz",
139+
"crates/rpc",
139140
"crates/test-programs",
140141
"crates/wasi-preview1-component-adapter",
141142
"crates/wasi-preview1-component-adapter/verify",
@@ -320,6 +321,9 @@ humantime = "2.0.0"
320321
postcard = { version = "1.0.8", default-features = false, features = ['alloc'] }
321322
criterion = { version = "0.5.0", default-features = false, features = ["html_reports", "rayon"] }
322323
rustc-hash = "1.1.0"
324+
tokio-util = "0.7.4"
325+
wasm-tokio = "0.4.0"
326+
wrpc-transport = "0.25.0"
323327

324328
# =============================================================================
325329
#

crates/rpc/Cargo.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[package]
2+
name = "wasmtime-rpc"
3+
description = "RPC-based Wasmtime functionality extensions"
4+
5+
version.workspace = true
6+
authors.workspace = true
7+
edition.workspace = true
8+
rust-version.workspace = true
9+
10+
[dependencies]
11+
anyhow = { workspace = true }
12+
bytes = { workspace = true }
13+
futures = { workspace = true, features = ["alloc"] }
14+
tracing = { workspace = true }
15+
tokio = { workspace = true, features = ["macros"] }
16+
tokio-util = { workspace = true, features = ["codec"] }
17+
wasm-tokio = { workspace = true }
18+
wasmtime = { workspace = true }
19+
wasmtime-wasi = { workspace = true }
20+
wrpc-transport = { workspace = true }
21+
22+
[dev-dependencies]
23+
test-log = { workspace = true }
24+
test-programs-artifacts = { workspace = true }
25+
tracing-subscriber = { workspace = true }
26+
27+
[lints]
28+
workspace = true

0 commit comments

Comments
 (0)