From 7a258a6dadcf4ef0e675f4bc62041742bd7c5ae3 Mon Sep 17 00:00:00 2001 From: Kevin K Date: Thu, 18 Jan 2018 15:33:57 -0500 Subject: [PATCH 1/2] style: allows unused macros --- src/config.rs | 1 + src/macros.rs | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/config.rs b/src/config.rs index f3acb8b..33b5d8d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,3 +1,4 @@ +#[allow(unused_imports)] use std::ascii::AsciiExt; use std::fmt; diff --git a/src/macros.rs b/src/macros.rs index 8bff024..fe07af5 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -1,3 +1,4 @@ +#[allow(unused_macros)] macro_rules! wlnerr( ($($arg:tt)*) => ({ use std::io::{Write, stderr}; @@ -5,6 +6,7 @@ macro_rules! wlnerr( }) ); +#[allow(unused_macros)] macro_rules! werr( ($($arg:tt)*) => ({ use std::io::{Write, stderr}; @@ -12,6 +14,7 @@ macro_rules! werr( }) ); +#[allow(unused_macros)] macro_rules! verbose( ($cfg:expr, $($arg:tt)*) => ({ if $cfg.verbose { @@ -21,6 +24,7 @@ macro_rules! verbose( }) ); +#[allow(unused_macros)] macro_rules! verboseln( ($cfg:expr, $($arg:tt)*) => ({ if $cfg.verbose { @@ -30,6 +34,7 @@ macro_rules! verboseln( }) ); +#[allow(unused_macros)] macro_rules! regex( ($s:expr) => ({::regex::Regex::new($s).unwrap()}) ); @@ -46,12 +51,14 @@ macro_rules! debug { ($fmt:expr, $($arg:tt)*) => (println!(concat!("**DEBUG** ",$fmt), $($arg)*)); } +#[cfg_attr(not(feature = "debug"), allow(unused_macros))] #[cfg(not(feature = "debug"))] macro_rules! debugln { ($fmt:expr) => (); ($fmt:expr, $($arg:tt)*) => (); } +#[cfg_attr(not(feature = "debug"), allow(unused_macros))] #[cfg(not(feature = "debug"))] macro_rules! debug { ($fmt:expr) => (); From d48c32e7c78c68737585d4498317d282b2f323c6 Mon Sep 17 00:00:00 2001 From: Kevin K Date: Thu, 18 Jan 2018 15:34:19 -0500 Subject: [PATCH 2/2] chore: increase version --- CHANGELOG.md | 14 +++++ CONTRIBUTORS.md | 12 ++-- Cargo.lock | 142 ++++++++++++++++++++++++++++++------------------ Cargo.toml | 6 +- 4 files changed, 113 insertions(+), 61 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e1aeed..88db7b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ + +### v0.3.2 (2018-01-18) + + +#### Documentation + +* adds a CONTRIBUTORS.md ([5cfbeea1](https://github.com/kbknapp/cargo-graph/commit/5cfbeea1b82975182b9b74600b9cb61fcf282a09)) + +#### Features + +* show different versions of a crate separately ([d6d4a39e](https://github.com/kbknapp/cargo-graph/commit/d6d4a39ebdffd008de117ae7bc04731496222af4), closes [#27](https://github.com/kbknapp/cargo-graph/issues/27)) + + + ## v0.2.0 (2015-12-11) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 1e0cee5..c3f9e35 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -1,13 +1,17 @@ the following is a list of contributors: -[maxsnew](https://github.com/maxsnew) |[kbknapp](https://github.com/kbknapp) |[homu](https://github.com/homu) |[Ryman](https://github.com/Ryman) |[steveklabnik](https://github.com/steveklabnik) |[FraGag](https://github.com/FraGag) | +[kbknapp](https://github.com/kbknapp) |[maxsnew](https://github.com/maxsnew) |[homu](https://github.com/homu) |[remram44](https://github.com/remram44) |[Ryman](https://github.com/Ryman) |[steveklabnik](https://github.com/steveklabnik) | :---: |:---: |:---: |:---: |:---: |:---: | -[maxsnew](https://github.com/maxsnew) |[kbknapp](https://github.com/kbknapp) |[homu](https://github.com/homu) |[Ryman](https://github.com/Ryman) |[steveklabnik](https://github.com/steveklabnik) |[FraGag](https://github.com/FraGag) | +[kbknapp](https://github.com/kbknapp) |[maxsnew](https://github.com/maxsnew) |[homu](https://github.com/homu) |[remram44](https://github.com/remram44) |[Ryman](https://github.com/Ryman) |[steveklabnik](https://github.com/steveklabnik) | -[mikedilger](https://github.com/mikedilger) |[Vaelden](https://github.com/Vaelden) |[brson](https://github.com/brson) |[globin](https://github.com/globin) |[bvssvni](https://github.com/bvssvni) |[mcarton](https://github.com/mcarton) | +[FraGag](https://github.com/FraGag) |[mikedilger](https://github.com/mikedilger) |[Vaelden](https://github.com/Vaelden) |[brson](https://github.com/brson) |[globin](https://github.com/globin) |[bvssvni](https://github.com/bvssvni) | :---: |:---: |:---: |:---: |:---: |:---: | -[mikedilger](https://github.com/mikedilger) |[Vaelden](https://github.com/Vaelden) |[brson](https://github.com/brson) |[globin](https://github.com/globin) |[bvssvni](https://github.com/bvssvni) |[mcarton](https://github.com/mcarton) | +[FraGag](https://github.com/FraGag) |[mikedilger](https://github.com/mikedilger) |[Vaelden](https://github.com/Vaelden) |[brson](https://github.com/brson) |[globin](https://github.com/globin) |[bvssvni](https://github.com/bvssvni) | + +[mcarton](https://github.com/mcarton) | +:---: | +[mcarton](https://github.com/mcarton) | diff --git a/Cargo.lock b/Cargo.lock index 3ffd4ca..72d6f15 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,36 +1,50 @@ -[root] -name = "cargo-graph" -version = "0.3.1" -dependencies = [ - "ansi_term 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", - "clap 2.11.3 (registry+https://github.com/rust-lang/crates.io-index)", - "clippy 0.0.88 (registry+https://github.com/rust-lang/crates.io-index)", - "toml 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - [[package]] name = "ansi_term" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "ansi_term" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "atty" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", + "termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "bitflags" -version = "0.7.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "cargo-graph" +version = "0.3.2" +dependencies = [ + "ansi_term 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "clap 2.29.2 (registry+https://github.com/rust-lang/crates.io-index)", + "clippy 0.0.88 (registry+https://github.com/rust-lang/crates.io-index)", + "toml 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "clap" -version = "2.11.3" +version = "2.29.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "ansi_term 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", - "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", - "strsim 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", - "term_size 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", - "unicode-segmentation 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", + "ansi_term 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)", + "atty 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", + "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "strsim 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", + "textwrap 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "unicode-width 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "vec_map 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", + "vec_map 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -55,18 +69,9 @@ dependencies = [ "unicode-normalization 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", ] -[[package]] -name = "kernel32-sys" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - [[package]] name = "libc" -version = "0.2.33" +version = "0.2.36" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -84,6 +89,19 @@ name = "quine-mc_cluskey" version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "redox_syscall" +version = "0.1.37" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "redox_termios" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "redox_syscall 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "regex-syntax" version = "0.3.9" @@ -104,17 +122,25 @@ dependencies = [ [[package]] name = "strsim" -version = "0.5.2" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] -name = "term_size" -version = "0.2.3" +name = "termion" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", + "redox_syscall 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)", + "redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "textwrap" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "unicode-width 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -138,11 +164,6 @@ name = "unicode-normalization" version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -[[package]] -name = "unicode-segmentation" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" - [[package]] name = "unicode-width" version = "0.1.4" @@ -150,40 +171,53 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "vec_map" -version = "0.6.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "winapi" -version = "0.2.8" +version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", +] [[package]] -name = "winapi-build" -version = "0.1.1" +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" [metadata] +"checksum ansi_term 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6b3568b48b7cefa6b8ce125f9bb4989e52fbcc29ebea88df04cc7c5f12f70455" "checksum ansi_term 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "23ac7c30002a5accbf7e8987d0632fa6de155b7c3d39d0067317a391e00a2ef6" -"checksum bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "aad18937a628ec6abcd26d1489012cc0e18c21798210f491af69ded9b881106d" -"checksum clap 2.11.3 (registry+https://github.com/rust-lang/crates.io-index)" = "63710db0c7585f80aaf1ca6d010e6bac497f2cbe333bb3eb25feeae91e10ed5b" +"checksum atty 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "8352656fd42c30a0c3c89d26dea01e3b77c0ab2af18230835c15e2e13cd51859" +"checksum bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b3c30d3802dfb7281680d6285f2ccdaa8c2d8fee41f93805dba5c4cf50dc23cf" +"checksum clap 2.29.2 (registry+https://github.com/rust-lang/crates.io-index)" = "4151c5790817c7d21bbdc6c3530811f798172915f93258244948b93ba19604a6" "checksum clippy 0.0.88 (registry+https://github.com/rust-lang/crates.io-index)" = "6cc502e63a10b490d8b445c728cfba3ea778a38a14432cf392b132e655cdf029" "checksum clippy_lints 0.0.88 (registry+https://github.com/rust-lang/crates.io-index)" = "28e4d47b13273289faf3e7a0d10e93e9ad5226c21e133e2e38ed09ca44a879fb" -"checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" -"checksum libc 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)" = "5ba3df4dcb460b9dfbd070d41c94c19209620c191b0340b929ce748a2bcd42d2" +"checksum libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)" = "1e5d97d6708edaa407429faa671b942dc0f2727222fb6b6539bf1db936e4b121" "checksum matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "100aabe6b8ff4e4a7e32c1c13523379802df0772b82466207ac25b013f193376" "checksum nom 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "a5b8c256fd9471521bcb84c3cdba98921497f1a331cbc15b8030fc63b82050ce" "checksum quine-mc_cluskey 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "07589615d719a60c8dd8a4622e7946465dfef20d1a428f969e3443e7386d5f45" +"checksum redox_syscall 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)" = "0d92eecebad22b767915e4d529f89f28ee96dbbf5a4810d2b844373f136417fd" +"checksum redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7e891cfe48e9100a70a3b6eb652fef28920c117d366339687bd5576160db0f76" "checksum regex-syntax 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "f9ec002c35e86791825ed294b50008eea9ddfc8def4420124fbc6b08db834957" "checksum rustc-serialize 0.3.24 (registry+https://github.com/rust-lang/crates.io-index)" = "dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda" "checksum semver 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2d5b7638a1f03815d94e88cb3b3c08e87f0db4d683ef499d1836aaf70a45623f" -"checksum strsim 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "67f84c44fbb2f91db7fef94554e6b2ac05909c9c0b0bc23bb98d3a1aebfe7f7c" -"checksum term_size 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "07b6c1ac5b3fffd75073276bca1ceed01f67a28537097a2a9539e116e50fb21a" +"checksum strsim 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b4d15c810519a91cf877e7e36e63fe068815c678181439f2f29e2562147c3694" +"checksum termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "689a3bdfaab439fd92bc87df5c4c78417d3cbe537487274e9b0b2dce76e92096" +"checksum textwrap 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c0b59b6b4b44d867f1370ef1bd91bfb262bf07bf0ae65c202ea2fbc16153b693" "checksum toml 0.1.30 (registry+https://github.com/rust-lang/crates.io-index)" = "0590d72182e50e879c4da3b11c6488dae18fccb1ae0c7a3eda18e16795844796" "checksum toml 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "736b60249cb25337bc196faa43ee12c705e426f3d55c214d73a4e7be06f92cb4" "checksum unicode-normalization 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "51ccda9ef9efa3f7ef5d91e8f9b83bbe6955f9bf86aec89d5cce2c874625920f" -"checksum unicode-segmentation 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "c3bc443ded17b11305ffffe6b37e2076f328a5a8cb6aa877b1b98f77699e98b5" "checksum unicode-width 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "bf3a113775714a22dcb774d8ea3655c53a32debae63a063acc00a91cc586245f" -"checksum vec_map 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "cac5efe5cb0fa14ec2f84f83c701c562ee63f6dcc680861b21d65c682adfb05f" -"checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" -"checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" +"checksum vec_map 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "887b5b631c2ad01628bbbaa7dd4c869f80d3186688f8d0b6f58774fbe324988c" +"checksum winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "04e3bd221fcbe8a271359c04f21a76db7d0c6028862d1bb5512d85e1e2eb5bb3" +"checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" +"checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" diff --git a/Cargo.toml b/Cargo.toml index 0712b2b..41bb3e9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cargo-graph" -version = "0.3.1" +version = "0.3.2" authors = [ "Kevin K. ", "Max New " @@ -20,8 +20,8 @@ travis-ci = {repository = "kbknapp/cargo-graph"} name = "cargo-graph" [dependencies] -toml = "~0.2.1" -clap = "~2.11.3" +toml = "0.2.1" +clap = "2.29.2" ansi_term = { version = "~0.9", optional = true } clippy = { version = "=0.0.88", optional = true }