Skip to content

Commit

Permalink
enable winch by default (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkcny authored Sep 30, 2024
1 parent 27bc48c commit 750ff04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build = "build.rs"
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(ruby_gte_3_0)'] }

[features]
default = ["tokio", "all-arch"]
default = ["tokio", "all-arch", "winch"]
embed = ["magnus/embed"]
tokio = ["dep:tokio", "dep:async-timer"]
all-arch = ["wasmtime/all-arch"]
Expand Down
2 changes: 1 addition & 1 deletion ext/src/ruby_api/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl Engine {
/// @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.
/// @option config [Symbol] :cranelift_opt_level One of +none+, +speed+, +speed_and_size+.
/// @option config [Symbol] :profiler One of +none+, +jitdump+, +vtune+.
/// @option config [Symbol] :strategy One of +auto+, +cranelift+, +winch+ (requires crate feature `winch` to be enabled)
/// @option config [Symbol] :strategy One of +auto+, +cranelift+, +winch+
/// @option config [String] :target
///
/// @see https://docs.rs/wasmtime/latest/wasmtime/struct.Engine.html
Expand Down
1 change: 1 addition & 0 deletions spec/unit/engine_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ module Wasmtime

# enum options represented as symbols
[
[:strategy, [:auto, :cranelift, :winch]],
[:cranelift_opt_level, [:none, :speed, :speed_and_size]],
[:profiler, profiler_options]
].each do |option, valid|
Expand Down

0 comments on commit 750ff04

Please sign in to comment.