diff --git a/Cargo.toml b/Cargo.toml index 23be076..b826c01 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ license = "GPL-3.0" name = "cargo-prune" readme = "README.md" repository = "https://github.com/ustulation/cargo-prune" -version = "0.1.5" +version = "0.1.6" [dependencies] docopt = "~0.6.86" diff --git a/README.md b/README.md index c8bd046..d4f8213 100644 --- a/README.md +++ b/README.md @@ -17,5 +17,8 @@ Currently this only works for `.rlib` dependencies. You will need to cargo install it (i.e. should be in `~/.cargo/bin/` in linux etc.) for it to work. E.g.: + - `cargo prune` (if installed to cargo bin directory) - `cargo prune --target some/path` (if installed to cargo bin directory) + +999 xx 99 diff --git a/src/main.rs b/src/main.rs index 510088a..d4c82c6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,6 +11,8 @@ //! //! Currently this only works for `.rlib` dependencies. +#![allow(unused)] + extern crate docopt; extern crate rustc_serialize; #[macro_use] @@ -22,6 +24,25 @@ use std::collections::HashMap; use std::fs::{self, ReadDir}; use std::path::PathBuf; +mod foo { + pub struct Foo; +} + +mod bar { + pub struct Foo; +} + +mod baz { + use foo::*; + + mod inner { + use bar::*; + use super::*; + + const FOO: Foo = Foo; + } +} + static USAGE: &'static str = " Usage: cargo prune [options]