Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

--no-dev-dependencies seems not working #65

Closed
rhysd opened this issue Jul 22, 2019 · 1 comment · Fixed by #86
Closed

--no-dev-dependencies seems not working #65

rhysd opened this issue Jul 22, 2019 · 1 comment · Fixed by #86

Comments

@rhysd
Copy link

rhysd commented Jul 22, 2019

Environment

  • macOS 10.12
  • cargo-tree 0.26.0
  • cargo 1.33.0

Steps

  1. cargo install cargo-tree
  2. git clone https://github.com/rhysd/git-brws.git && cd git-brws
  3. cargo tree --no-dev-dependencies

Expected

[dev-dependencies] is not included in output

Actual

I got this output. [dev-dependencies] was included. It seemed that output of cargo tree and of cargo tree --no-dev-dependencies were exactly the same.

git-brws v0.11.2 (/Users/npsdev5/Develop/github.com/rhysd/git-brws)
├── envy v0.4.0
│   └── serde v1.0.97
│       └── serde_derive v1.0.97
│           ├── proc-macro2 v0.4.30
│           │   └── unicode-xid v0.1.0
│           ├── quote v0.6.13
│           │   └── proc-macro2 v0.4.30 (*)
│           └── syn v0.15.40
│               ├── proc-macro2 v0.4.30 (*)
│               ├── quote v0.6.13 (*)
│               └── unicode-xid v0.1.0 (*)
│       [dev-dependencies]
│       └── serde_derive v1.0.97 (*)
│   [dev-dependencies]
│   └── serde v1.0.97 (*)
├── getopts v0.2.19
│   └── unicode-width v0.1.5
├── open v1.2.3
├── path-slash v0.1.1
├── reqwest v0.9.19
│   ├── base64 v0.10.1
│   │   └── byteorder v1.3.2
│   ├── bytes v0.4.12
│   │   ├── byteorder v1.3.2 (*)
│   │   ├── either v1.5.2
│   │   └── iovec v0.1.2
│   │       └── libc v0.2.60
│   ├── cookie v0.12.0
│   │   ├── time v0.1.42
│   │   │   └── libc v0.2.60 (*)
│   │   │   [dev-dependencies]
│   │   │   └── winapi v0.3.7
│   │   └── url v1.7.2
│   │       ├── idna v0.1.5
│   │       │   ├── matches v0.1.8
│   │       │   ├── unicode-bidi v0.3.4
│   │       │   │   └── matches v0.1.8 (*)
│   │       │   └── unicode-normalization v0.1.8
│   │       │       └── smallvec v0.6.10
│   │       ├── matches v0.1.8 (*)
│   │       └── percent-encoding v1.0.1
│   ├── cookie_store v0.7.0
│   │   ├── cookie v0.12.0 (*)
│   │   ├── failure v0.1.5
│   │   │   ├── backtrace v0.3.33
│   │   │   │   ├── backtrace-sys v0.1.31
│   │   │   │   │   └── libc v0.2.60 (*)
│   │   │   │   │   [build-dependencies]
│   │   │   │   │   └── cc v1.0.37
│   │   │   │   ├── cfg-if v0.1.9
│   │   │   │   ├── libc v0.2.60 (*)
│   │   │   │   └── rustc-demangle v0.1.15
│   │   │   └── failure_derive v0.1.5
│   │   │       ├── proc-macro2 v0.4.30 (*)
│   │   │       ├── quote v0.6.13 (*)
│   │   │       ├── syn v0.15.40 (*)
│   │   │       └── synstructure v0.10.2
│   │   │           ├── proc-macro2 v0.4.30 (*)
│   │   │           ├── quote v0.6.13 (*)
│   │   │           ├── syn v0.15.40 (*)
│   │   │           └── unicode-xid v0.1.0 (*)
│   │   ├── idna v0.1.5 (*)
│   │   ├── log v0.4.7
│   │   │   └── cfg-if v0.1.9 (*)
│   │   ├── publicsuffix v1.5.2
│   │   │   ├── error-chain v0.12.1
│   │   │   │   └── backtrace v0.3.33 (*)
│   │   │   │   [build-dependencies]
│   │   │   │   └── version_check v0.1.5
│   │   │   ├── idna v0.1.5 (*)
│   │   │   ├── lazy_static v1.3.0
│   │   │   │   └── spin v0.5.0
│   │   │   ├── regex v1.2.0
│   │   │   │   ├── aho-corasick v0.7.4
│   │   │   │   │   └── memchr v2.2.1
│   │   │   │   ├── memchr v2.2.1 (*)
│   │   │   │   ├── regex-syntax v0.6.10
│   │   │   │   │   └── ucd-util v0.1.5
│   │   │   │   ├── thread_local v0.3.6
│   │   │   │   │   └── lazy_static v1.3.0 (*)
│   │   │   │   └── utf8-ranges v1.0.3
│   │   │   └── url v1.7.2 (*)
│   │   ├── serde v1.0.97 (*)
│   │   ├── serde_json v1.0.40
│   │   │   ├── itoa v0.4.4
│   │   │   ├── ryu v1.0.0
│   │   │   └── serde v1.0.97 (*)
│   │   ├── time v0.1.42 (*)
│   │   ├── try_from v0.3.2
│   │   │   └── cfg-if v0.1.9 (*)
│   │   └── url v1.7.2 (*)
│   ├── encoding_rs v0.8.17
│   │   └── cfg-if v0.1.9 (*)
│   ├── flate2 v1.0.9
│   │   ├── crc32fast v1.2.0
│   │   │   └── cfg-if v0.1.9 (*)
│   │   ├── libc v0.2.60 (*)
│   │   └── miniz_oxide_c_api v0.2.2
│   │       ├── crc32fast v1.2.0 (*)
│   │       ├── libc v0.2.60 (*)
│   │       └── miniz_oxide v0.2.3
│   │           └── adler32 v1.0.3
│   │       [build-dependencies]
│   │       └── cc v1.0.37 (*)
│   ├── futures v0.1.28
│   ├── http v0.1.17
│   │   ├── bytes v0.4.12 (*)
│   │   ├── fnv v1.0.6
│   │   └── itoa v0.4.4 (*)
│   ├── hyper v0.12.33
│   │   ├── bytes v0.4.12 (*)
│   │   ├── futures v0.1.28 (*)
│   │   ├── futures-cpupool v0.1.8
│   │   │   ├── futures v0.1.28 (*)
│   │   │   └── num_cpus v1.10.1
│   │   │       └── libc v0.2.60 (*)
│   │   ├── h2 v0.1.25
│   │   │   ├── byteorder v1.3.2 (*)
│   │   │   ├── bytes v0.4.12 (*)
│   │   │   ├── fnv v1.0.6 (*)
│   │   │   ├── futures v0.1.28 (*)
│   │   │   ├── http v0.1.17 (*)
│   │   │   ├── indexmap v1.0.2
│   │   │   ├── log v0.4.7 (*)
│   │   │   ├── slab v0.4.2
│   │   │   ├── string v0.2.1
│   │   │   │   └── bytes v0.4.12 (*)
│   │   │   └── tokio-io v0.1.12
│   │   │       ├── bytes v0.4.12 (*)
│   │   │       ├── futures v0.1.28 (*)
│   │   │       └── log v0.4.7 (*)
│   │   ├── http v0.1.17 (*)
│   │   ├── http-body v0.1.0
│   │   │   ├── bytes v0.4.12 (*)
│   │   │   ├── futures v0.1.28 (*)
│   │   │   ├── http v0.1.17 (*)
│   │   │   └── tokio-buf v0.1.1
│   │   │       ├── bytes v0.4.12 (*)
│   │   │       ├── either v1.5.2 (*)
│   │   │       └── futures v0.1.28 (*)
│   │   ├── httparse v1.3.4
│   │   ├── iovec v0.1.2 (*)
│   │   ├── itoa v0.4.4 (*)
│   │   ├── log v0.4.7 (*)
│   │   ├── net2 v0.2.33
│   │   │   ├── cfg-if v0.1.9 (*)
│   │   │   └── libc v0.2.60 (*)
│   │   ├── time v0.1.42 (*)
│   │   ├── tokio v0.1.22
│   │   │   ├── bytes v0.4.12 (*)
│   │   │   ├── futures v0.1.28 (*)
│   │   │   ├── mio v0.6.19
│   │   │   │   ├── iovec v0.1.2 (*)
│   │   │   │   ├── libc v0.2.60 (*)
│   │   │   │   ├── log v0.4.7 (*)
│   │   │   │   ├── net2 v0.2.33 (*)
│   │   │   │   └── slab v0.4.2 (*)
│   │   │   ├── num_cpus v1.10.1 (*)
│   │   │   ├── tokio-current-thread v0.1.6
│   │   │   │   ├── futures v0.1.28 (*)
│   │   │   │   └── tokio-executor v0.1.8
│   │   │   │       ├── crossbeam-utils v0.6.5
│   │   │   │       │   ├── cfg-if v0.1.9 (*)
│   │   │   │       │   └── lazy_static v1.3.0 (*)
│   │   │   │       └── futures v0.1.28 (*)
│   │   │   ├── tokio-executor v0.1.8 (*)
│   │   │   ├── tokio-io v0.1.12 (*)
│   │   │   ├── tokio-reactor v0.1.9
│   │   │   │   ├── crossbeam-utils v0.6.5 (*)
│   │   │   │   ├── futures v0.1.28 (*)
│   │   │   │   ├── lazy_static v1.3.0 (*)
│   │   │   │   ├── log v0.4.7 (*)
│   │   │   │   ├── mio v0.6.19 (*)
│   │   │   │   ├── num_cpus v1.10.1 (*)
│   │   │   │   ├── parking_lot v0.7.1
│   │   │   │   │   ├── lock_api v0.1.5
│   │   │   │   │   │   ├── owning_ref v0.4.0
│   │   │   │   │   │   │   └── stable_deref_trait v1.1.1
│   │   │   │   │   │   └── scopeguard v0.3.3
│   │   │   │   │   └── parking_lot_core v0.4.0
│   │   │   │   │       ├── libc v0.2.60 (*)
│   │   │   │   │       ├── rand v0.6.5
│   │   │   │   │       │   ├── libc v0.2.60 (*)
│   │   │   │   │       │   ├── rand_chacha v0.1.1
│   │   │   │   │       │   │   └── rand_core v0.3.1
│   │   │   │   │       │   │       └── rand_core v0.4.0
│   │   │   │   │       │   │   [build-dependencies]
│   │   │   │   │       │   │   └── autocfg v0.1.5
│   │   │   │   │       │   ├── rand_core v0.4.0 (*)
│   │   │   │   │       │   ├── rand_hc v0.1.0
│   │   │   │   │       │   │   └── rand_core v0.3.1 (*)
│   │   │   │   │       │   ├── rand_isaac v0.1.1
│   │   │   │   │       │   │   └── rand_core v0.3.1 (*)
│   │   │   │   │       │   ├── rand_jitter v0.1.4
│   │   │   │   │       │   │   ├── libc v0.2.60 (*)
│   │   │   │   │       │   │   └── rand_core v0.4.0 (*)
│   │   │   │   │       │   ├── rand_os v0.1.3
│   │   │   │   │       │   │   ├── libc v0.2.60 (*)
│   │   │   │   │       │   │   └── rand_core v0.4.0 (*)
│   │   │   │   │       │   ├── rand_pcg v0.1.2
│   │   │   │   │       │   │   └── rand_core v0.4.0 (*)
│   │   │   │   │       │   │   [build-dependencies]
│   │   │   │   │       │   │   └── autocfg v0.1.5 (*)
│   │   │   │   │       │   └── rand_xorshift v0.1.1
│   │   │   │   │       │       └── rand_core v0.3.1 (*)
│   │   │   │   │       │   [build-dependencies]
│   │   │   │   │       │   └── autocfg v0.1.5 (*)
│   │   │   │   │       └── smallvec v0.6.10 (*)
│   │   │   │   │       [build-dependencies]
│   │   │   │   │       └── rustc_version v0.2.3
│   │   │   │   │           └── semver v0.9.0
│   │   │   │   │               └── semver-parser v0.7.0
│   │   │   │   ├── slab v0.4.2 (*)
│   │   │   │   ├── tokio-executor v0.1.8 (*)
│   │   │   │   ├── tokio-io v0.1.12 (*)
│   │   │   │   └── tokio-sync v0.1.6
│   │   │   │       ├── fnv v1.0.6 (*)
│   │   │   │       └── futures v0.1.28 (*)
│   │   │   │   [dev-dependencies]
│   │   │   │   └── num_cpus v1.10.1 (*)
│   │   │   ├── tokio-tcp v0.1.3
│   │   │   │   ├── bytes v0.4.12 (*)
│   │   │   │   ├── futures v0.1.28 (*)
│   │   │   │   ├── iovec v0.1.2 (*)
│   │   │   │   ├── mio v0.6.19 (*)
│   │   │   │   ├── tokio-io v0.1.12 (*)
│   │   │   │   └── tokio-reactor v0.1.9 (*)
│   │   │   ├── tokio-threadpool v0.1.15
│   │   │   │   ├── crossbeam-deque v0.7.1
│   │   │   │   │   ├── crossbeam-epoch v0.7.1
│   │   │   │   │   │   ├── arrayvec v0.4.11
│   │   │   │   │   │   │   └── nodrop v0.1.13
│   │   │   │   │   │   ├── cfg-if v0.1.9 (*)
│   │   │   │   │   │   ├── crossbeam-utils v0.6.5 (*)
│   │   │   │   │   │   ├── lazy_static v1.3.0 (*)
│   │   │   │   │   │   ├── memoffset v0.2.1
│   │   │   │   │   │   └── scopeguard v0.3.3 (*)
│   │   │   │   │   └── crossbeam-utils v0.6.5 (*)
│   │   │   │   ├── crossbeam-queue v0.1.2
│   │   │   │   │   └── crossbeam-utils v0.6.5 (*)
│   │   │   │   ├── crossbeam-utils v0.6.5 (*)
│   │   │   │   ├── futures v0.1.28 (*)
│   │   │   │   ├── log v0.4.7 (*)
│   │   │   │   ├── num_cpus v1.10.1 (*)
│   │   │   │   ├── rand v0.6.5 (*)
│   │   │   │   ├── slab v0.4.2 (*)
│   │   │   │   └── tokio-executor v0.1.8 (*)
│   │   │   └── tokio-timer v0.2.11
│   │   │       ├── crossbeam-utils v0.6.5 (*)
│   │   │       ├── futures v0.1.28 (*)
│   │   │       ├── slab v0.4.2 (*)
│   │   │       └── tokio-executor v0.1.8 (*)
│   │   │   [dev-dependencies]
│   │   │   └── num_cpus v1.10.1 (*)
│   │   ├── tokio-buf v0.1.1 (*)
│   │   ├── tokio-executor v0.1.8 (*)
│   │   ├── tokio-io v0.1.12 (*)
│   │   ├── tokio-reactor v0.1.9 (*)
│   │   ├── tokio-tcp v0.1.3 (*)
│   │   ├── tokio-threadpool v0.1.15 (*)
│   │   ├── tokio-timer v0.2.11 (*)
│   │   └── want v0.2.0
│   │       ├── futures v0.1.28 (*)
│   │       ├── log v0.4.7 (*)
│   │       └── try-lock v0.2.2
│   │   [build-dependencies]
│   │   └── rustc_version v0.2.3 (*)
│   ├── hyper-tls v0.3.2
│   │   ├── bytes v0.4.12 (*)
│   │   ├── futures v0.1.28 (*)
│   │   ├── hyper v0.12.33 (*)
│   │   ├── native-tls v0.2.3
│   │   │   ├── lazy_static v1.3.0 (*)
│   │   │   ├── libc v0.2.60 (*)
│   │   │   ├── security-framework v0.3.1
│   │   │   │   ├── core-foundation v0.6.4
│   │   │   │   │   ├── core-foundation-sys v0.6.2
│   │   │   │   │   └── libc v0.2.60 (*)
│   │   │   │   ├── core-foundation-sys v0.6.2 (*)
│   │   │   │   ├── libc v0.2.60 (*)
│   │   │   │   └── security-framework-sys v0.3.1
│   │   │   │       └── core-foundation-sys v0.6.2 (*)
│   │   │   ├── security-framework-sys v0.3.1 (*)
│   │   │   └── tempfile v3.1.0
│   │   │       ├── cfg-if v0.1.9 (*)
│   │   │       ├── libc v0.2.60 (*)
│   │   │       ├── rand v0.7.0
│   │   │       │   ├── getrandom v0.1.6
│   │   │       │   │   ├── lazy_static v1.3.0 (*)
│   │   │       │   │   └── libc v0.2.60 (*)
│   │   │       │   ├── libc v0.2.60 (*)
│   │   │       │   ├── rand_chacha v0.2.0
│   │   │       │   │   ├── c2-chacha v0.2.2
│   │   │       │   │   │   ├── lazy_static v1.3.0 (*)
│   │   │       │   │   │   └── ppv-lite86 v0.2.5
│   │   │       │   │   └── rand_core v0.5.0
│   │   │       │   │       └── getrandom v0.1.6 (*)
│   │   │       │   │   [build-dependencies]
│   │   │       │   │   └── autocfg v0.1.5 (*)
│   │   │       │   └── rand_core v0.5.0 (*)
│   │   │       │   [dev-dependencies]
│   │   │       │   └── rand_hc v0.2.0
│   │   │       │       └── rand_core v0.5.0 (*)
│   │   │       └── remove_dir_all v0.5.2
│   │   └── tokio-io v0.1.12 (*)
│   ├── log v0.4.7 (*)
│   ├── mime v0.3.13
│   │   └── unicase v2.4.0
│   │       [build-dependencies]
│   │       └── version_check v0.1.5 (*)
│   ├── mime_guess v2.0.0-alpha.6
│   │   ├── mime v0.3.13 (*)
│   │   ├── phf v0.7.24
│   │   │   └── phf_shared v0.7.24
│   │   │       ├── siphasher v0.2.3
│   │   │       └── unicase v1.4.2
│   │   │           [build-dependencies]
│   │   │           └── version_check v0.1.5 (*)
│   │   └── unicase v1.4.2 (*)
│   │   [build-dependencies]
│   │   ├── phf_codegen v0.7.24
│   │   │   ├── phf_generator v0.7.24
│   │   │   │   ├── phf_shared v0.7.24 (*)
│   │   │   │   └── rand v0.6.5 (*)
│   │   │   └── phf_shared v0.7.24 (*)
│   │   └── unicase v1.4.2 (*)
│   ├── native-tls v0.2.3 (*)
│   ├── serde v1.0.97 (*)
│   ├── serde_json v1.0.40 (*)
│   ├── serde_urlencoded v0.5.5
│   │   ├── dtoa v0.4.4
│   │   ├── itoa v0.4.4 (*)
│   │   ├── serde v1.0.97 (*)
│   │   └── url v1.7.2 (*)
│   ├── time v0.1.42 (*)
│   ├── tokio v0.1.22 (*)
│   ├── tokio-executor v0.1.8 (*)
│   ├── tokio-io v0.1.12 (*)
│   ├── tokio-threadpool v0.1.15 (*)
│   ├── tokio-timer v0.2.11 (*)
│   ├── url v1.7.2 (*)
│   └── uuid v0.7.4
│       └── rand v0.6.5 (*)
│   [dev-dependencies]
│   ├── bytes v0.4.12 (*)
│   ├── serde v1.0.97 (*)
│   └── tokio v0.1.22 (*)
├── serde v1.0.97 (*)
├── serde_derive v1.0.97 (*)
└── url v1.7.2 (*)
sfackler added a commit that referenced this issue Dec 30, 2019
This both makes the crate compile way faster and avoids having to touch
tons of unstable, undocumented cargo internals. This requires Rust 1.41
(the current beta) for some cargo-metadata features.

There are some subtle differences in the new output (particularly in
handling dependencies between crates in workspaces), but they're pretty
minor.

Closes #73
Closes #69
Closes #66
Closes #65
Closes #63
Closes #61
Closes #57
Closes #20
sfackler added a commit that referenced this issue Dec 30, 2019
This both makes the crate compile way faster and avoids having to touch
tons of unstable, undocumented cargo internals. This requires Rust 1.41
(the current beta) for some cargo-metadata features.

There are some subtle differences in the new output (particularly in
handling dependencies between crates in workspaces), but they're pretty
minor.

Closes #73
Closes #69
Closes #66
Closes #65
Closes #63
Closes #61
Closes #57
Closes #20
sfackler added a commit that referenced this issue Dec 30, 2019
This both makes the crate compile way faster and avoids having to touch
tons of unstable, undocumented cargo internals. This requires Rust 1.41
(the current beta) for some cargo-metadata features.

There are some subtle differences in the new output (particularly in
handling dependencies between crates in workspaces), but they're pretty
minor.

Closes #73
Closes #69
Closes #66
Closes #65
Closes #63
Closes #61
Closes #57
Closes #20
@rhysd
Copy link
Author

rhysd commented Dec 30, 2019

I confirmed v0.28 fixed this issue. Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant