Skip to content

Commit 750ff04

Browse files
authored
enable winch by default (#379)
1 parent 27bc48c commit 750ff04

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

ext/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ build = "build.rs"
1111
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(ruby_gte_3_0)'] }
1212

1313
[features]
14-
default = ["tokio", "all-arch"]
14+
default = ["tokio", "all-arch", "winch"]
1515
embed = ["magnus/embed"]
1616
tokio = ["dep:tokio", "dep:async-timer"]
1717
all-arch = ["wasmtime/all-arch"]

ext/src/ruby_api/engine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl Engine {
8181
/// @option config [Boolean] :generate_address_map Configures whether compiled artifacts will contain information to map native program addresses back to the original wasm module. This configuration option is `true` by default. Disabling this feature can result in considerably smaller serialized modules.
8282
/// @option config [Symbol] :cranelift_opt_level One of +none+, +speed+, +speed_and_size+.
8383
/// @option config [Symbol] :profiler One of +none+, +jitdump+, +vtune+.
84-
/// @option config [Symbol] :strategy One of +auto+, +cranelift+, +winch+ (requires crate feature `winch` to be enabled)
84+
/// @option config [Symbol] :strategy One of +auto+, +cranelift+, +winch+
8585
/// @option config [String] :target
8686
///
8787
/// @see https://docs.rs/wasmtime/latest/wasmtime/struct.Engine.html

spec/unit/engine_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ module Wasmtime
4141

4242
# enum options represented as symbols
4343
[
44+
[:strategy, [:auto, :cranelift, :winch]],
4445
[:cranelift_opt_level, [:none, :speed, :speed_and_size]],
4546
[:profiler, profiler_options]
4647
].each do |option, valid|

0 commit comments

Comments
 (0)