Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #22 from golemcloud/wasm-wave
Browse files Browse the repository at this point in the history
Support for wasm-wave
  • Loading branch information
jdegoes authored Mar 17, 2024
2 parents 5e042e5 + 973e3e3 commit 30bfc08
Show file tree
Hide file tree
Showing 4 changed files with 835 additions and 1 deletion.
14 changes: 14 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion wasm-rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ serde = { version = "1.0.113", optional = true }
serde_json = { version = "1.0.113", optional = true }
prost = { version = "0.12.3", optional = true }
wasmtime = { version = "=17.0.0", features = ["component-model"], optional = true }
wasm-wave = { version = "=0.4.0", optional = true }

[dev-dependencies]
proptest = "1.4.0"
Expand All @@ -33,13 +34,14 @@ prost-build = "0.12.3"

[features]
default = ["host"]
host = ["arbitrary", "bincode", "json", "protobuf", "serde", "typeinfo", "wasmtime"]
host = ["arbitrary", "bincode", "json", "protobuf", "serde", "text", "typeinfo", "wasmtime"]
arbitrary = ["dep:arbitrary"]
bincode = ["dep:bincode"]
json = ["dep:serde", "dep:serde_json", "dep:bigdecimal", "typeinfo"]
protobuf = ["dep:bincode", "dep:serde", "dep:prost"]
serde = ["dep:serde"]
stub = []
text = ["wasmtime", "dep:wasm-wave"]
typeinfo = ["dep:golem-wasm-ast"]
wasmtime = ["dep:wasmtime", "typeinfo"]

Expand Down
3 changes: 3 additions & 0 deletions wasm-rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ pub mod protobuf;
#[cfg(feature = "serde")]
pub mod serde;

#[cfg(feature = "text")]
mod text;

#[cfg(feature = "wasmtime")]
pub mod wasmtime;

Expand Down
Loading

0 comments on commit 30bfc08

Please sign in to comment.