mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-06 04:38:25 +00:00
Update dependencies. Use Clap 3.0.0-beta2 instead of StructOpt
This commit is contained in:
@@ -1,36 +1,36 @@
|
||||
//! Common module with common used structures across different
|
||||
//! commands.
|
||||
use crate::VERSION;
|
||||
use clap::Clap;
|
||||
use std::env;
|
||||
use std::path::PathBuf;
|
||||
use structopt::StructOpt;
|
||||
|
||||
#[derive(Debug, StructOpt, Clone)]
|
||||
#[derive(Debug, Clap, Clone)]
|
||||
/// The WebAssembly features that can be passed through the
|
||||
/// Command Line args.
|
||||
pub struct WasmFeatures {
|
||||
/// Enable support for the SIMD proposal.
|
||||
#[structopt(long = "enable-simd")]
|
||||
#[clap(long = "enable-simd")]
|
||||
pub simd: bool,
|
||||
|
||||
/// Enable support for the threads proposal.
|
||||
#[structopt(long = "enable-threads")]
|
||||
#[clap(long = "enable-threads")]
|
||||
pub threads: bool,
|
||||
|
||||
/// Enable support for the reference types proposal.
|
||||
#[structopt(long = "enable-reference-types")]
|
||||
#[clap(long = "enable-reference-types")]
|
||||
pub reference_types: bool,
|
||||
|
||||
/// Enable support for the multi value proposal.
|
||||
#[structopt(long = "enable-multi-value")]
|
||||
#[clap(long = "enable-multi-value")]
|
||||
pub multi_value: bool,
|
||||
|
||||
/// Enable support for the bulk memory proposal.
|
||||
#[structopt(long = "enable-bulk-memory")]
|
||||
#[clap(long = "enable-bulk-memory")]
|
||||
pub bulk_memory: bool,
|
||||
|
||||
/// Enable support for all pre-standard proposals.
|
||||
#[structopt(long = "enable-all")]
|
||||
#[clap(long = "enable-all")]
|
||||
pub all: bool,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user