Update dependencies. Use Clap 3.0.0-beta2 instead of StructOpt

This commit is contained in:
Syrus Akbary
2021-03-03 21:47:49 -08:00
parent 1ee7b4a07f
commit 392f50a1af
21 changed files with 301 additions and 330 deletions

View File

@@ -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,
}