Skip to content

Commit

Permalink
enable threads proposal for WebAssembly
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Jul 3, 2024
1 parent a758364 commit 1893ec8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/wasmtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bitflags = "2.5"
cfg-if = "1"
log = { version = "0.4" } #, features = ["kv_unstable"]}
simple_logger = { version = "5.0", default-features = false }
wasmtime = { version = "22.0", default-features = false, features = ["std", "runtime", "cranelift", "threads", "parallel-compilation", "incremental-cache", "pooling-allocator"] } #"wat", "gc", "component-model"] }
wasmtime = { version = "22.0", default-features = false, features = ["std", "runtime", "cranelift", "threads", "parallel-compilation"] } #"pooling-allocator", "incremental-cache", "wat", "gc", "component-model"] }
zerocopy = { version = "0.7" }

[target.'cfg(target_os = "hermit")'.dependencies]
Expand Down
3 changes: 2 additions & 1 deletion examples/wasmtime/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ pub fn main() -> Result<()> {

// First step is to create the Wasm execution engine with some config.
// In this example we are using the default configuration.
let config = wasmtime::Config::new();
let mut config = wasmtime::Config::new();
config.wasm_threads(true);
info!("Wasmtime engine is configured as followed: {:?}", config);
let engine = Engine::new(&config)?;

Expand Down

0 comments on commit 1893ec8

Please sign in to comment.