mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 05:08:19 +00:00
compiler: add wasmer-artifact-load,wasmer-artifact-create,static-artifact-load,static-artifact-create feature flags
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
use crate::commands::Binfmt;
|
||||
#[cfg(feature = "compiler")]
|
||||
use crate::commands::Compile;
|
||||
#[cfg(feature = "compiler")]
|
||||
#[cfg(any(feature = "static-artifact-create", feature = "wasmer-artifact-create"))]
|
||||
use crate::commands::CreateExe;
|
||||
#[cfg(feature = "wast")]
|
||||
use crate::commands::Wast;
|
||||
@@ -47,7 +47,7 @@ enum WasmerCLIOptions {
|
||||
Compile(Compile),
|
||||
|
||||
/// Compile a WebAssembly binary into a native executable
|
||||
#[cfg(feature = "compiler")]
|
||||
#[cfg(any(feature = "static-artifact-create", feature = "wasmer-artifact-create"))]
|
||||
#[structopt(name = "create-exe")]
|
||||
CreateExe(CreateExe),
|
||||
|
||||
@@ -84,7 +84,7 @@ impl WasmerCLIOptions {
|
||||
Self::Validate(validate) => validate.execute(),
|
||||
#[cfg(feature = "compiler")]
|
||||
Self::Compile(compile) => compile.execute(),
|
||||
#[cfg(feature = "compiler")]
|
||||
#[cfg(any(feature = "static-artifact-create", feature = "wasmer-artifact-create"))]
|
||||
Self::CreateExe(create_exe) => create_exe.execute(),
|
||||
Self::Config(config) => config.execute(),
|
||||
Self::Inspect(inspect) => inspect.execute(),
|
||||
|
||||
Reference in New Issue
Block a user