Skip to content

Document that 'cargo package' always rebuilds all dependencies #3062

@Wilfred

Description

@Wilfred

Every time I invoke cargo package, everything gets rebuilt -- even dependencies.

This is awkward when fixing missing entries in Cargo.toml:

$ cargo package
warning: manifest has no license or license-file. See http://doc.crates.io/manifest.html#package-metadata for more info.
   Packaging bfc v1.7.0 (file:///home/wilfred/projects/bfc)
   Verifying bfc v1.7.0 (file:///home/wilfred/projects/bfc)
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Compiling libc v0.2.15
   Compiling regex-syntax v0.3.4
...
# OK, I've changed Cargo.toml. Let me try again to see if the warning has gone:
$ cargo package
$ cargo package
   Packaging bfc v1.7.0 (file:///home/wilfred/projects/bfc)
   Verifying bfc v1.7.0 (file:///home/wilfred/projects/bfc)
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Compiling bitflags v0.5.0
   Compiling winapi v0.2.8
   Compiling semver v0.1.20
   Compiling matches v0.1.2 # looks like everything is being compiled again

Seems like the inverse of #2799.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions