Skip to content

Commit

Permalink
Merge pull request #77 from anderejd/pico-args
Browse files Browse the repository at this point in the history
Replaced structopt & clap with pico-args <3
  • Loading branch information
anderejd authored Dec 1, 2019
2 parents 979d746 + 71cf546 commit 1d75119
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 195 deletions.
58 changes: 7 additions & 51 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions cargo-geiger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ maintenance = { status = "experimental" }

[dependencies]
cargo = "0.40.0"
clap = "2.33.0"
colored = "1.9.0"
console = "0.9.1"
env_logger = "0.7.1"
geiger = { path = "../geiger", version = "0.4.1" }
petgraph = "0.4.13"
structopt = "0.3.4"
pico-args = "0.3.0"
walkdir = "2.2.9"

[dev-dependencies]
Expand Down
13 changes: 2 additions & 11 deletions cargo-geiger/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,6 @@
// TODO: Consider making this a lib.rs (again) and expose a full API, excluding
// only the terminal output..? That API would be dependent on cargo.

extern crate cargo;
extern crate colored;
extern crate console;
extern crate env_logger;
extern crate geiger;
extern crate petgraph;
extern crate structopt;
extern crate walkdir;

use self::walkdir::DirEntry;
use self::walkdir::WalkDir;
use crate::format::Pattern;
use crate::Args;
use cargo::core::compiler::CompileMode;
Expand Down Expand Up @@ -61,6 +50,8 @@ use std::path::PathBuf;
use std::str::{self, FromStr};
use std::sync::Arc;
use std::sync::Mutex;
use walkdir::DirEntry;
use walkdir::WalkDir;

// ---------- BEGIN: Public items ----------

Expand Down
Loading

0 comments on commit 1d75119

Please sign in to comment.