Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo outdated just says 'RM' for everything. #49

Closed
dimbleby opened this issue Aug 5, 2017 · 7 comments · Fixed by #51
Closed

cargo outdated just says 'RM' for everything. #49

dimbleby opened this issue Aug 5, 2017 · 7 comments · Fixed by #51

Comments

@dimbleby
Copy link
Contributor

dimbleby commented Aug 5, 2017

Here's output from one of my projects (c-ares-resolver):

$ cargo outdated
Name                        Project Ver  SemVer Compat  Latest Ver
bytes->byteorder               1.1.0          RM            RM
bytes->iovec                   0.1.0          RM            RM
conv->custom_derive            0.1.7          RM            RM
dns-parser                     0.7.0          RM            RM
dns-parser->byteorder          0.4.2          RM            RM
dns-parser->matches            0.1.6          RM            RM
dns-parser->quick-error        1.2.0          RM            RM
iovec->libc                    0.2.29         RM            RM
iovec->winapi                  0.2.8          RM            RM
kernel32-sys->winapi           0.2.8          RM            RM
kernel32-sys->winapi-build     0.1.1          RM            RM
magenta->conv                  0.3.3          RM            RM
magenta->magenta-sys           0.1.1          RM            RM
magenta-sys->bitflags          0.7.0          RM            RM
mio->iovec                     0.1.0          RM            RM
mio->kernel32-sys              0.2.2          RM            RM
mio->lazycell                  0.5.1          RM            RM
mio->libc                      0.2.29         RM            RM
mio->log                       0.3.8          RM            RM
mio->magenta                   0.1.1          RM            RM
mio->magenta-sys               0.1.1          RM            RM
mio->miow                      0.2.1          RM            RM
mio->net2                      0.2.30         RM            RM
mio->slab                      0.3.0          RM            RM
mio->winapi                    0.2.8          RM            RM
miow->kernel32-sys             0.2.2          RM            RM
miow->net2                     0.2.30         RM            RM
miow->winapi                   0.2.8          RM            RM
miow->ws2_32-sys               0.2.1          RM            RM
net2->cfg-if                   0.1.2          RM            RM
net2->kernel32-sys             0.2.2          RM            RM
net2->libc                     0.2.29         RM            RM
net2->winapi                   0.2.8          RM            RM
net2->ws2_32-sys               0.2.1          RM            RM
tokio-core                     0.1.9          RM            RM
tokio-core->bytes              0.4.4          RM            RM
tokio-core->futures            0.1.14         RM            RM
tokio-core->iovec              0.1.0          RM            RM
tokio-core->log                0.3.8          RM            RM
tokio-core->mio                0.6.10         RM            RM
tokio-core->scoped-tls         0.1.0          RM            RM
tokio-core->slab               0.3.0          RM            RM
tokio-core->tokio-io           0.1.2          RM            RM
tokio-io->bytes                0.4.4          RM            RM
tokio-io->futures              0.1.14         RM            RM
tokio-io->log                  0.3.8          RM            RM
winapi                         0.2.8          RM            RM
ws2_32-sys                     0.2.1          RM            RM
ws2_32-sys->winapi             0.2.8          RM            RM
ws2_32-sys->winapi-build       0.1.1          RM            RM

#46 already has me covered for "I've no idea what RM even means", this issue says "surely that's not right?"

@Frederick888
Copy link
Collaborator

Related to #20 #28

@daboross
Copy link

daboross commented Aug 5, 2017

This is happening to me for a non-workspace project without any build dependencies, maybe it's related to optional dependencies and/or dev-dependencies?

$ cargo outdated
Name                                         Project Ver  SemVer Compat  Latest Ver
advapi32-sys->winapi                            0.2.8          RM            RM  
advapi32-sys->winapi-build                      0.1.1          RM            RM  
aho-corasick->memchr                            1.0.1          RM            RM  
atty->kernel32-sys                              0.2.2          RM            RM  
atty->libc                                      0.2.29         RM            RM  
atty->winapi                                    0.2.8          RM            RM  
backtrace->backtrace-sys                        0.1.12         RM            RM  
backtrace->cfg-if                               0.1.2          RM            RM  
backtrace->dbghelp-sys                          0.2.0          RM            RM  
backtrace->kernel32-sys                         0.2.2          RM            RM  
backtrace->libc                                 0.2.29         RM            RM  
backtrace->rustc-demangle                       0.1.4          RM            RM  
backtrace->winapi                               0.2.8          RM            RM  
backtrace-sys->gcc                              0.3.51         RM            RM  
backtrace-sys->libc                             0.2.29         RM            RM  
base64->byteorder                               1.1.0          RM            RM  
bytes->byteorder                                1.1.0          RM            RM  
bytes->iovec                                    0.1.0          RM            RM  
chrono                                          0.4.0          RM            RM  
chrono->num                                     0.1.40         RM            RM  
chrono->time                                    0.1.38         RM            RM  
clap                                            2.26.0         RM            RM  
clap->ansi_term                                 0.9.0          RM            RM  
clap->atty                                      0.2.2          RM            RM  
clap->bitflags                                  0.9.1          RM            RM  
clap->strsim                                    0.6.0          RM            RM  
clap->term_size                                 0.3.0          RM            RM  
clap->textwrap                                  0.7.0          RM            RM  
clap->unicode-segmentation                      1.2.0          RM            RM  
clap->unicode-width                             0.1.4          RM            RM  
clap->vec_map                                   0.8.0          RM            RM  
conv->custom_derive                             0.1.7          RM            RM  
core-foundation->core-foundation-sys            0.2.3          RM            RM  
core-foundation->libc                           0.2.29         RM            RM  
core-foundation-sys->libc                       0.2.29         RM            RM  
crypt32-sys->winapi                             0.2.8          RM            RM  
crypt32-sys->winapi-build                       0.1.1          RM            RM  
dbghelp-sys->winapi                             0.2.8          RM            RM  
dbghelp-sys->winapi-build                       0.1.1          RM            RM  
derive-error-chain->quote                       0.3.15         RM            RM  
derive-error-chain->syn                         0.11.11        RM            RM  
dotenv                                          0.10.1         RM            RM  
dotenv->derive-error-chain                      0.10.1         RM            RM  
dotenv->error-chain                             0.10.0         RM            RM  
dotenv->regex                                   0.2.2          RM            RM  
error-chain->backtrace                          0.3.2          RM            RM  
fern                                            0.4.0          RM            RM  
fern->log                                       0.3.8          RM            RM  
generic-array                                   0.5.1          --          0.8.2
hyper->base64                                   0.5.2          RM            RM  
hyper->httparse                                 1.2.3          RM            RM  
hyper->language-tags                            0.2.2          RM            RM  
hyper->log                                      0.3.8          RM            RM  
hyper->mime                                     0.2.6          RM            RM  
hyper->num_cpus                                 1.6.2          RM            RM  
hyper->time                                     0.1.38         RM            RM  
hyper->traitobject                              0.1.0          RM            RM  
hyper->typeable                                 0.1.2          RM            RM  
hyper->unicase                                  1.4.2          RM            RM  
hyper->url                                      1.5.1          RM            RM  
idna->matches                                   0.1.6          RM            RM  
idna->unicode-bidi                              0.3.4          RM            RM  
idna->unicode-normalization                     0.1.5          RM            RM  
iovec->libc                                     0.2.29         RM            RM  
iovec->winapi                                   0.2.8          RM            RM  
kernel32-sys->winapi                            0.2.8          RM            RM  
kernel32-sys->winapi-build                      0.1.1          RM            RM  
magenta->conv                                   0.3.3          RM            RM  
magenta->magenta-sys                            0.1.1          RM            RM  
magenta-sys->bitflags                           0.7.0          RM            RM  
memchr->libc                                    0.2.29         RM            RM  
mime->log                                       0.3.8          RM            RM  
mio->iovec                                      0.1.0          RM            RM  
mio->kernel32-sys                               0.2.2          RM            RM  
mio->lazycell                                   0.5.1          RM            RM  
mio->libc                                       0.2.29         RM            RM  
mio->log                                        0.3.8          RM            RM  
mio->magenta                                    0.1.1          RM            RM  
mio->magenta-sys                                0.1.1          RM            RM  
mio->miow                                       0.2.1          RM            RM  
mio->net2                                       0.2.30         RM            RM  
mio->slab                                       0.3.0          RM            RM  
mio->winapi                                     0.2.8          RM            RM  
miow->kernel32-sys                              0.2.2          RM            RM  
miow->net2                                      0.2.30         RM            RM  
miow->winapi                                    0.2.8          RM            RM  
miow->ws2_32-sys                                0.2.1          RM            RM  
native-tls->openssl                             0.9.15         RM            RM  
native-tls->schannel                            0.1.7          RM            RM  
native-tls->security-framework                  0.1.15         RM            RM  
native-tls->security-framework-sys              0.1.15         RM            RM  
native-tls->tempdir                             0.3.5          RM            RM  
net2->cfg-if                                    0.1.2          RM            RM  
net2->kernel32-sys                              0.2.2          RM            RM  
net2->libc                                      0.2.29         RM            RM  
net2->winapi                                    0.2.8          RM            RM  
net2->ws2_32-sys                                0.2.1          RM            RM  
num->num-integer                                0.1.35         RM            RM  
num->num-iter                                   0.1.34         RM            RM  
num->num-traits                                 0.1.40         RM            RM  
num-integer->num-traits                         0.1.40         RM            RM  
num-iter->num-integer                           0.1.35         RM            RM  
num-iter->num-traits                            0.1.40         RM            RM  
num_cpus->libc                                  0.2.29         RM            RM  
openssl->bitflags                               0.9.1          RM            RM  
openssl->foreign-types                          0.2.0          RM            RM  
openssl->lazy_static                            0.2.8          RM            RM  
openssl->libc                                   0.2.29         RM            RM  
openssl->openssl-sys                            0.9.15         RM            RM  
openssl-sys->gcc                                0.3.51         RM            RM  
openssl-sys->libc                               0.2.29         RM            RM  
openssl-sys->pkg-config                         0.3.9          RM            RM  
rand->libc                                      0.2.29         RM            RM  
rand->magenta                                   0.1.1          RM            RM  
regex->aho-corasick                             0.6.3          RM            RM  
regex->memchr                                   1.0.1          RM            RM  
regex->regex-syntax                             0.4.1          RM            RM  
regex->thread_local                             0.3.4          RM            RM  
regex->utf8-ranges                              1.0.0          RM            RM  
schannel->advapi32-sys                          0.2.0          RM            RM  
schannel->crypt32-sys                           0.2.0          RM            RM  
schannel->kernel32-sys                          0.2.2          RM            RM  
schannel->lazy_static                           0.2.8          RM            RM  
schannel->secur32-sys                           0.2.0          RM            RM  
schannel->winapi                                0.2.8          RM            RM  
schannel->winapi-build                          0.1.1          RM            RM  
secur32-sys->winapi                             0.2.8          RM            RM  
secur32-sys->winapi-build                       0.1.1          RM            RM  
security-framework->core-foundation             0.2.3          RM            RM  
security-framework->core-foundation-sys         0.2.3          RM            RM  
security-framework->libc                        0.2.29         RM            RM  
security-framework->security-framework-sys      0.1.15         RM            RM  
security-framework-sys->core-foundation-sys     0.2.3          RM            RM  
security-framework-sys->libc                    0.2.29         RM            RM  
syn->quote                                      0.3.15         RM            RM  
syn->synom                                      0.11.3         RM            RM  
syn->unicode-xid                                0.0.4          RM            RM  
synom->unicode-xid                              0.0.4          RM            RM  
tempdir->rand                                   0.3.16         RM            RM  
term_size->kernel32-sys                         0.2.2          RM            RM  
term_size->libc                                 0.2.29         RM            RM  
term_size->winapi                               0.2.8          RM            RM  
textwrap->term_size                             0.3.0          RM            RM  
textwrap->unicode-width                         0.1.4          RM            RM  
thread_local->lazy_static                       0.2.8          RM            RM  
thread_local->unreachable                       1.0.0          RM            RM  
time->kernel32-sys                              0.2.2          RM            RM  
time->libc                                      0.2.29         RM            RM  
time->redox_syscall                             0.1.29         RM            RM  
time->winapi                                    0.2.8          RM            RM  
tokio-core->bytes                               0.4.4          RM            RM  
tokio-core->futures                             0.1.14         RM            RM  
tokio-core->iovec                               0.1.0          RM            RM  
tokio-core->log                                 0.3.8          RM            RM  
tokio-core->mio                                 0.6.10         RM            RM  
tokio-core->scoped-tls                          0.1.0          RM            RM  
tokio-core->slab                                0.3.0          RM            RM  
tokio-core->tokio-io                            0.1.2          RM            RM  
tokio-io->bytes                                 0.4.4          RM            RM  
tokio-io->futures                               0.1.14         RM            RM  
tokio-io->log                                   0.3.8          RM            RM  
tokio-tls->futures                              0.1.14         RM            RM  
tokio-tls->native-tls                           0.1.4          RM            RM  
tokio-tls->tokio-core                           0.1.9          RM            RM  
tokio-tls->tokio-io                             0.1.2          RM            RM  
unicase->version_check                          0.1.3          RM            RM  
unicode-bidi->matches                           0.1.6          RM            RM  
unreachable->void                               1.0.2          RM            RM  
url->idna                                       0.1.4          RM            RM  
url->matches                                    0.1.6          RM            RM  
url->percent-encoding                           1.0.0          RM            RM  
websocket                                       0.20.2         RM            RM  
websocket->base64                               0.5.2          RM            RM  
websocket->bitflags                             0.9.1          RM            RM  
websocket->byteorder                            1.1.0          RM            RM  
websocket->bytes                                0.4.4          RM            RM  
websocket->futures                              0.1.14         RM            RM  
websocket->hyper                                0.10.12        RM            RM  
websocket->native-tls                           0.1.4          RM            RM  
websocket->rand                                 0.3.16         RM            RM  
websocket->sha1                                 0.2.0          RM            RM  
websocket->tokio-core                           0.1.9          RM            RM  
websocket->tokio-io                             0.1.2          RM            RM  
websocket->tokio-tls                            0.1.3          RM            RM  
websocket->unicase                              1.4.2          RM            RM  
websocket->url                                  1.5.1          RM            RM  
ws2_32-sys->winapi                              0.2.8          RM            RM  
ws2_32-sys->winapi-build                        0.1.1          RM            RM  

Among the packages some are just regular dependencies though, like tokio-core.

Here's the Cargo.toml: https://github.com/daboross/rust-screeps-api/blob/master/Cargo.toml

@Frederick888
Copy link
Collaborator

@daboross Yes. Currently cargo-outdated is not taking dev/build/target dependencies into count.

Since there is a ticket rust-lang/cargo#4309 talking about embedding cargo-outdated into cargo, I think I should introduce cargo as a dependency to this subcommand so that the issues about optional dependencies and workspace can be solved altogether. But this may not be a quick fix.

@shepmaster
Copy link

shepmaster commented Aug 12, 2017

I'm seeing similar:

hyper                           0.10.12        --          0.11.2
hyper->base64                   0.5.2          --          0.6.0
hyper->mime                     0.2.6          --          0.3.3
hyper->num_cpus                 1.6.2          --            RM
hyper->traitobject              0.1.0          --            RM
hyper->typeable                 0.1.2          --            RM
hyper->unicase                  1.4.2          --          2.0.0
hyper->url                      1.5.1          --            RM
idna->matches                   0.1.6          --            RM
idna->unicode-bidi              0.3.4          --            RM
idna->unicode-normalization     0.1.5          --            RM
mime->log                       0.3.8          --            RM
num_cpus->libc                  0.2.29         --            RM
unicase->version_check          0.1.3          --            RM
unicode-bidi->matches           0.1.6          --            RM
url->idna                       0.1.4          --            RM
url->matches                    0.1.6          --            RM
url->percent-encoding           1.0.0          --            RM

In my case, I don't have direct dependencies on most of those:

[dependencies]
cargo = "0.20.0"
hyper = "0.10.9"
hyper-native-tls = "0.2.2"
lazy_static = "0.2.8"
serde = "1.0.1"
serde_derive = "1.0.1"
serde_json = "1.0.0"
toml = "0.4.0"

Perhaps something is "flattening" out the dependency tree and that's why it looks like packages are being removed?

@Frederick888
Copy link
Collaborator

@shepmaster If you could give #51 a try :)

@shepmaster
Copy link

@Frederick888 that works, but has basically the same output. Upon further reflection, I think I have simply been confused by:

  1. RM versus removed
  2. The fact that non-direct dependencies (e.g. idna) are represented the same as direct dependencies (e.g. hyper). This is probably something I should file a separate issue for.

@Frederick888
Copy link
Collaborator

@shepmaster It would be appreciated if you could provide the related Cargo.toml and Cargo.lock 👍

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

Successfully merging a pull request may close this issue.

4 participants