Revert update to clap-beta back to structopt

Clap-beta hasn't had a release in a while and likely won't for a while longer.
We're affected by bugs that have been fixed and not released. We shouldn't be
depending on beta software anyways for this.
This commit is contained in:
Mark McCaskey
2021-06-03 07:49:32 -07:00
parent fbc56f7497
commit 6382d99ac7
16 changed files with 139 additions and 162 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, Clap, Clone)]
#[derive(Debug, StructOpt, Clone)]
/// The WebAssembly features that can be passed through the
/// Command Line args.
pub struct WasmFeatures {
/// Enable support for the SIMD proposal.
#[clap(long = "enable-simd")]
#[structopt(long = "enable-simd")]
pub simd: bool,
/// Enable support for the threads proposal.
#[clap(long = "enable-threads")]
#[structopt(long = "enable-threads")]
pub threads: bool,
/// Enable support for the reference types proposal.
#[clap(long = "enable-reference-types")]
#[structopt(long = "enable-reference-types")]
pub reference_types: bool,
/// Enable support for the multi value proposal.
#[clap(long = "enable-multi-value")]
#[structopt(long = "enable-multi-value")]
pub multi_value: bool,
/// Enable support for the bulk memory proposal.
#[clap(long = "enable-bulk-memory")]
#[structopt(long = "enable-bulk-memory")]
pub bulk_memory: bool,
/// Enable support for all pre-standard proposals.
#[clap(long = "enable-all")]
#[structopt(long = "enable-all")]
pub all: bool,
}