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

strip in Cargo.toml gets no love from cargo outdated #231

Closed
virtualritz opened this issue Jul 23, 2020 · 2 comments
Closed

strip in Cargo.toml gets no love from cargo outdated #231

virtualritz opened this issue Jul 23, 2020 · 2 comments

Comments

@virtualritz
Copy link

In my Cargo.toml I have:

[profile.release]
strip = "symbols"

This makes cargo outdated (v0.9.11) fall over:

❯ cargo outdated
error: failed to parse manifest at `Cargo.toml`

Caused by:
  unknown cargo feature `strip`

Strip is a supported feature in nightly since a while.

@deg4uss3r
Copy link
Collaborator

Can you provide a full breaking Cargo.toml? As the Cargo.toml below works fine for me on MacOS 10.15.5:

cargo-features = ["strip"]

[package]
name = "stripit"
version = "0.1.0"
authors = ["degausser"]
edition = "2018"

[dependencies]
rand = "0.1"

[profile.release]
strip = "symbols"

produces:

❯ cargo outdated -v
  Parsing... current workspace
Resolving... current workspace
  Parsing... compat workspace
 Updating... compat workspace
    Updating crates.io index
Resolving... compat workspace
  Parsing... latest workspace
 Updating... latest workspace
    Updating crates.io index
      Adding cfg-if v0.1.10
      Adding getrandom v0.1.14
    Updating libc v0.1.12 -> v0.2.73
    Removing log v0.2.5
      Adding ppv-lite86 v0.2.8
    Updating rand v0.1.4 -> v0.7.3
      Adding rand_chacha v0.2.2
      Adding rand_core v0.5.1
      Adding rand_hc v0.2.0
      Adding wasi v0.9.0+wasi-snapshot-preview1
Resolving... latest workspace
Resolving... package status
 Printing... list format
Name        Project  Compat  Latest   Kind    Platform
----        -------  ------  ------   ----    --------
rand        0.1.4    ---     0.7.3    Normal  ---
rand->libc  0.1.12   ---     0.2.73   Normal  ---
rand->log   0.2.5    ---     Removed  Normal  ---
❯ cargo outdated --version
cargo-outdated v0.9.11

@virtualritz
Copy link
Author

Confirmed. No idea why I got that error before but everything works now. Maybe my terminal session was somehow polluted. Sorry about the noise.

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

No branches or pull requests

2 participants