Skip to content

Commit

Permalink
refactor: introduce cargo as a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederick888 committed Aug 8, 2017
1 parent 601bdf1 commit 21253e0
Show file tree
Hide file tree
Showing 17 changed files with 1,692 additions and 914 deletions.
661 changes: 660 additions & 1 deletion Cargo.lock

Large diffs are not rendered by default.

27 changes: 12 additions & 15 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
[package]
name = "cargo-outdated"
version = "0.4.0"
authors = ["Kevin K. <[email protected]>"]
exclude = ["*.png"]
description = "Cargo subcommand for displaying when dependencies are out of date"
repository = "https://github.com/kbknapp/cargo-outdated.git"
readme = "README.md"
license = "MIT"
exclude = ["*.png"]
keywords = ["cargo", "subcommand", "dependencies", "cargo-subcommand", "deps"]

license = "MIT"
name = "cargo-outdated"
readme = "README.md"
repository = "https://github.com/kbknapp/cargo-outdated.git"
version = "0.4.0"
[[bin]]
name = "cargo-outdated"

[dependencies]
cargo = "0.20.0"
clap = "2.26.0"
env_logger = "0.4.3"
semver = "0.7.0"
serde = "1.0.11"
serde_derive = "1.0.11"
toml = "~0.4.3"
tabwriter = "~1.0.3"
tempdir = "~0.3.5"
ansi_term = {version = "0.9", optional = true}
term = "0.4.6"
toml = "~0.4.3"

[features]
default = ["color"]
color = ["ansi_term"]
debug = []
nightly = []
unstable = []
travis = ["nightly"]

default = []
[profile.release]
lto = true
58 changes: 31 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,17 @@ Once installed (see below) running `cargo outdated` in a project directory looks

```
$ cargo outdated
Checking for SemVer compatible updates...Done
Checking for the latest updates...Done
The following dependencies have newer versions available:
Name Project Ver SemVer Compat Latest Ver
regex->regex-syntax 0.2.1 0.2.2 0.2.2
regex->memchr 0.1.5 0.1.6 0.1.6
clap 1.2.3 1.2.5 1.4.7
tabwriter 0.1.23 0.1.24 0.1.24
clippy 0.0.11 0.0.22 0.0.22
clap->ansi_term 0.6.3 -- 0.7.0
regex->aho-corasick 0.3.0 0.3.4 0.4.0
ansi_term 0.6.3 -- 0.7.0
Name Project Compat Latest Kind Platform
clap 2.20.0 2.20.5 2.26.0 Normal ---
clap->bitflags 0.7.0 --- 0.9.1 Normal ---
clap->libc 0.2.18 0.2.29 Removed Normal ---
clap->term_size 0.2.1 0.2.3 0.3.0 Normal ---
clap->vec_map 0.6.0 --- 0.8.0 Normal ---
num_cpus 1.6.0 --- 1.6.2 Development ---
num_cpus->libc 0.2.18 0.2.29 0.2.29 Normal ---
pkg-config 0.3.8 0.3.9 0.3.9 Build ---
term 0.4.5 --- 0.4.6 Normal ---
term_size->libc 0.2.18 0.2.29 0.2.29 Normal cfg(not(target_os = "windows"))
```

## Installing
Expand Down Expand Up @@ -86,24 +84,30 @@ Otherwise, ensure you have the `cargo-outdated` binary in the directory which yo
There are a few options for using `cargo-outdated` which should be somewhat self explanitory.

```
cargo-outdated v0.3.0
Displays information about project dependency versions
USAGE:
cargo outdated [FLAGS] [OPTIONS]
FLAGS:
-h, --help Prints help information
-R, --root-deps-only Only check root dependencies (Equivalent to --depth=1)
-V, --version Prints version information
-v, --verbose Print verbose output
--all-features Check outdated packages with all ures enabled
--frozen Require Cargo.lock and cache are o date
-h, --help Prints help information
--locked Require Cargo.lock is up to date
--no-default-features Do not include the `default` ure
-q, --quiet Coloring: auto, always, never
-R, --root-deps-only Only check root dependencies ivalent to --depth=1)
-V, --version Prints version information
-v, --verbose Use verbose output
OPTIONS:
-d, --depth <NUM> How deep in the dependency chain to search (Defaults to all dependencies when omitted)
--exit-code <NUM> The exit code to return on new versions found [default: 0]
-l, --lockfile-path <PATH> An absolute path to the Cargo.lock to use (Defaults to Cargo.lock in project root)
-m, --manifest-path <PATH> An absolute path to the Cargo.toml file to use (Defaults to Cargo.toml in project root)
-p, --package <PKG>... Package to inspect for updates
--color <color> Coloring: auto, always, never ault: auto]
[values: auto, always, never]
-d, --depth <NUM> How deep in the dependency n to search
(Defaults to all dependencies omitted)
--exit-code <NUM> The exit code to return on new ions found [default: 0]
--features <FEATURE> Space-separated list of features
-m, --manifest-path <PATH> An absolute path to the o.toml file to use
(Defaults to Cargo.toml in ect root)
-p, --packages <PKG>... Package to inspect for updates
-r, --root <ROOT> Package to treat as the root package
```

## License
Expand Down
221 changes: 0 additions & 221 deletions src/cargo_files/dependency_tree.rs

This file was deleted.

29 changes: 0 additions & 29 deletions src/cargo_files/lockfile.rs

This file was deleted.

9 changes: 0 additions & 9 deletions src/cargo_files/manifest.rs

This file was deleted.

7 changes: 0 additions & 7 deletions src/cargo_files/mod.rs

This file was deleted.

Loading

0 comments on commit 21253e0

Please sign in to comment.