Remove usage of Features from wasmtime::Config API (#763)
Instead expose a number of boolean accessors which doesn't require users to construct a foreign `Features` type and allows us to decouple the API of the `wasmtime` crate from the underlying implementation detail.
This commit is contained in:
@@ -45,12 +45,7 @@ const WAT: &str = r#"
|
||||
fn main() -> Result<()> {
|
||||
// Initialize.
|
||||
println!("Initializing...");
|
||||
let mut cfg = Config::new();
|
||||
cfg.features(wasmtime_jit::Features {
|
||||
multi_value: true,
|
||||
..Default::default()
|
||||
});
|
||||
let engine = Engine::new(&cfg);
|
||||
let engine = Engine::new(Config::new().wasm_multi_value(true));
|
||||
let store = HostRef::new(Store::new(&engine));
|
||||
|
||||
// Load binary.
|
||||
|
||||
Reference in New Issue
Block a user