diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2019-09-21 02:01:54 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2019-09-21 02:01:54 +0000 |
commit | 9234050ad4c510acdd780100a8df80b2557cb3e1 (patch) | |
tree | 7156cfb99eaca387ed209d1d938b2f5b88d3f656 | |
parent | Bump Cargo.lock (diff) | |
download | miniserve-9234050ad4c510acdd780100a8df80b2557cb3e1.tar.gz miniserve-9234050ad4c510acdd780100a8df80b2557cb3e1.zip |
Remove explicit clap dependency in favor of structopt's re-exported version
Diffstat (limited to '')
-rw-r--r-- | Cargo.lock | 1 | ||||
-rw-r--r-- | Cargo.toml | 1 | ||||
-rw-r--r-- | src/main.rs | 2 | ||||
-rw-r--r-- | tests/cli.rs | 2 |
4 files changed, 2 insertions, 4 deletions
@@ -1418,7 +1418,6 @@ dependencies = [ "bytesize 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "chrono 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)", "chrono-humanize 0.0.11 (registry+https://github.com/rust-lang/crates.io-index)", - "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", "failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", "hex 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -21,7 +21,6 @@ codegen-units = 1 panic = 'abort' [dependencies] -clap = "2.29" yansi = "0.5" actix = "0.7" actix-web = "0.7" diff --git a/src/main.rs b/src/main.rs index dc98df0..a1217d0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,7 @@ use actix_web::http::{Method, StatusCode}; use actix_web::{fs, middleware, server, App, HttpRequest, HttpResponse}; -use clap::crate_version; +use structopt::clap::crate_version; use simplelog::{Config, LevelFilter, TermLogger, TerminalMode}; use std::io::{self, Write}; use std::net::{IpAddr, Ipv4Addr, SocketAddr}; diff --git a/tests/cli.rs b/tests/cli.rs index d5df06b..5bd7d96 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -1,7 +1,7 @@ mod fixtures; use assert_cmd::prelude::*; -use clap::{crate_name, crate_version}; +use structopt::clap::{crate_name, crate_version}; use fixtures::Error; use std::process::Command; |