From dc01afb3b5658d021929b349b6b79b10538f7494 Mon Sep 17 00:00:00 2001 From: Syrus Date: Wed, 20 Nov 2019 17:28:43 -0800 Subject: [PATCH] Use structopt clap instead of global clap --- Cargo.lock | 1 - Cargo.toml | 1 - src/bin/wasmer.rs | 3 +-- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a20878c06a8..24fa874a31a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1336,7 +1336,6 @@ name = "wasmer" version = "0.10.2" dependencies = [ "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)", - "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", "errno 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", "glob 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 5c48c6551d1..8724d91d4a3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,6 @@ include = [ [dependencies] byteorder = "1.3" -clap="2.33.0" errno = "0.2" structopt = "0.3" wabt = "0.9.1" diff --git a/src/bin/wasmer.rs b/src/bin/wasmer.rs index 966c6c0f67a..36e0100d671 100644 --- a/src/bin/wasmer.rs +++ b/src/bin/wasmer.rs @@ -9,7 +9,6 @@ )] extern crate structopt; -use clap; use std::env; use std::fs::{read_to_string, File}; use std::io; @@ -19,7 +18,7 @@ use std::process::exit; use std::str::FromStr; use std::collections::HashMap; -use structopt::StructOpt; +use structopt::{clap, StructOpt}; use wasmer::*; use wasmer_clif_backend::CraneliftCompiler;