We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2fd5de commit f078c75Copy full SHA for f078c75
1 file changed
src/commands/wast.rs
@@ -37,6 +37,11 @@ pub struct WastCommand {
37
/// Wasmtime itself.
38
#[arg(long = "async", require_equals = true, value_name = "true|false")]
39
async_: Option<Option<bool>>,
40
+
41
+ /// Whether or not to enable wasmtime's builtin functions for the `*.wast`
42
+ /// to import.
43
+ #[arg(long = "wasmtime-builtins")]
44
+ wasmtime_builtins: bool,
45
}
46
47
impl WastCommand {
@@ -81,6 +86,10 @@ impl WastCommand {
81
86
wast_context.precompile_load(path);
82
87
83
88
89
+ if self.wasmtime_builtins {
90
+ wast_context.register_wasmtime()?;
91
+ }
92
84
93
for script in self.scripts.iter() {
85
94
wast_context
95
.run_file(script)
0 commit comments