@@ -40,9 +40,9 @@ const DEFAULT_INHERIT_ENV: bool = false;
40
40
const DEFAULT_KEEP_INIT_FUNC : bool = false ;
41
41
const DEFAULT_WASM_MULTI_VALUE : bool = true ;
42
42
const DEFAULT_WASM_MULTI_MEMORY : bool = true ;
43
- const DEFAULT_WASM_BULK_MEMORY : bool = false ;
43
+ const DEFAULT_WASM_BULK_MEMORY : bool = true ;
44
44
const DEFAULT_WASM_SIMD : bool = true ;
45
- const DEFAULT_WASM_REFERENCE_TYPES : bool = false ;
45
+ const DEFAULT_WASM_REFERENCE_TYPES : bool = true ;
46
46
47
47
/// The type of data that is stored in the `wasmtime::Store` during
48
48
/// initialization.
@@ -241,7 +241,7 @@ pub struct Wizer {
241
241
/// are currently supported. Modules which use other instructions, such as
242
242
/// `table.copy` will be rejected.
243
243
///
244
- /// Disabled by default.
244
+ /// Enabled by default.
245
245
#[ cfg_attr( feature = "structopt" , structopt( long, value_name = "true|false" ) ) ]
246
246
wasm_bulk_memory : Option < bool > ,
247
247
@@ -257,7 +257,7 @@ pub struct Wizer {
257
257
/// but enables initializing Wasm modules that use encodings introduced
258
258
/// in the reference-types proposal.
259
259
///
260
- /// Disabled by default.
260
+ /// Enabled by default.
261
261
#[ cfg_attr( feature = "structopt" , structopt( long, value_name = "true|false" ) ) ]
262
262
wasm_reference_types : Option < bool > ,
263
263
}
@@ -556,7 +556,7 @@ impl Wizer {
556
556
/// operations are currently supported. Modules which use other
557
557
/// instructions, such as `table.copy` will be rejected.
558
558
///
559
- /// Defaults to `false `.
559
+ /// Defaults to `true `.
560
560
pub fn wasm_bulk_memory ( & mut self , enable : bool ) -> & mut Self {
561
561
self . wasm_bulk_memory = Some ( enable) ;
562
562
self
@@ -576,7 +576,7 @@ impl Wizer {
576
576
/// but enables initializing Wasm modules that use encodings introduced
577
577
/// in the reference-types proposal.
578
578
///
579
- /// Defaults to `false `.
579
+ /// Defaults to `true `.
580
580
pub fn wasm_reference_types ( & mut self , enable : bool ) -> & mut Self {
581
581
self . wasm_reference_types = Some ( enable) ;
582
582
self
0 commit comments