CARGO-REPO...ATIBILITIES(1)
β¨ cargo-report-future-incompatibilities(1) β¨
okay bestie, buckle up, this is a page from the General Commands Manual and it's giving "your build is fine for now but the compiler is side-eyeing you" π
π NAME π
cargo-report-future-incompatibilities β the lil command that reports any crates which will eventually stop compiling π
πΈ SYNOPSIS πΈ
cargo report future-incompatibilities [options]
π¦ DESCRIPTION π¦
So what it does: it displays a report of future-incompatible warnings that were emitted during previous builds. These are warnings for changes that may become hard errors in the future, which would make dependencies stop building in a future version of rustc. it's giving "the vibes are off and the compiler is literally telling you in advance" π
For more, see the chapter on Future incompat report β https://doc.rust-lang.org/cargo/reference/future-incompat-report.html π
β¨ OPTIONS β¨
--id idβ show the report with the specified Cargo-generatedid. If you don't specify one, it shows the most recent report. default behaviour, main character energy π
π Package Selection π
By default, the package in the current working directory is selected. The -p flag can be used to choose a different package in a workspace. no cap π«Ά
-p spec,--package specβ the package to display a report for. Seecargo-pkgid(1)for the SPEC format.
π Display Options π
-v,--verboseβ use verbose output. May be specified twice for "very verbose" output, which includes extra output such as dependency warnings and build script output. May also be specified with theterm.verboseconfig value βhttps://doc.rust-lang.org/cargo/reference/config.html. okay so twice is the move if you want the whole lore π€-q,--quietβ do not print cargo log messages. May also be specified with theterm.quietconfig value βhttps://doc.rust-lang.org/cargo/reference/config.html. shhh π€«--color whenβ control when colored output is used. Valid values are:auto(default): automatically detect if color support is available on the terminal.always: always display colors. πnever: never display colors. π
May also be specified with the term.color config value β https://doc.rust-lang.org/cargo/reference/config.html.
π§ Manifest Options π§
--lockedβ asserts that the exact same dependencies and versions are used as when the existingCargo.lockfile was originally generated. Cargo will exit with an error when either of the following scenarios arises:- The lock file is missing. π
- Cargo attempted to change the lock file due to a different dependency resolution.
It may be used in environments where deterministic builds are desired, such as in CI pipelines. periodt, reproducibility is iconic β¨
--offlineβ prevents Cargo from accessing the network for any reason. Without this flag, Cargo will stop with an error if it needs to access the network and the network is not available. With this flag, Cargo will attempt to proceed without the network if possible. airplane mode but for crates βοΈ
Beware that this may result in different dependency resolution than online mode. Cargo will restrict itself to crates that are downloaded locally, even if there might be a newer version as indicated in the local copy of the index. See the cargo-fetch(1) command to download dependencies before going offline.
May also be specified with the net.offline config value β https://doc.rust-lang.org/cargo/reference/config.html.
--frozenβ equivalent to specifying both--lockedand--offline. it's giving combo deal π
π Common Options π
+toolchainβ if Cargo has been installed with rustup, and the first argument tocargobegins with+, it will be interpreted as a rustup toolchain name (such as+stableor+nightly). See the rustup documentation βhttps://rust-lang.github.io/rustup/overrides.htmlβ for more information about how toolchain overrides work.--config KEY=VALUE or PATHβ overrides a Cargo configuration value. The argument should be in TOML syntax ofKEY=VALUE, or provided as a path to an extra configuration file. This flag may be specified multiple times. See the command-line overrides section βhttps://doc.rust-lang.org/cargo/reference/config.html#command-line-overridesβ for more information.-C PATHβ changes the current working directory before executing any specified operations. This affects things like where cargo looks by default for the project manifest (Cargo.toml), as well as the directories searched for discovering.cargo/config.toml, for example. This option must appear before the command name, for examplecargo -C path/to/my-project build. order matters bestie, don't do it wrong π
This option is only available on the nightly channel βhttps://doc.rust-lang.org/book/appendix-07-nightly-rust.htmlβ and requires the-Z unstable-optionsflag to enable (see #10098 βhttps://github.com/rust-lang/cargo/issues/10098).
-h,--helpβ prints help information. your emergency contact π«Ά-Z flagβ unstable (nightly-only) flags to Cargo. Runcargo -Z helpfor details. chaos mode, but make it official π
π ENVIRONMENT π
See the reference β https://doc.rust-lang.org/cargo/reference/environment-variables.html β for details on environment variables that Cargo reads. env vars are lowkey the whole personality of a build πΈ
β EXIT STATUS β
0: Cargo succeeded. slay π101: Cargo failed to complete. crying π
π EXAMPLES π
- Display the latest future-incompat report:
cargo report future-incompat
- Display the latest future-incompat report for a specific package:
cargo report future-incompat --package my-dep@0.0.1
π SEE ALSO π
cargo(1), cargo-report(1), cargo-build(1) β the friend group, go say hi π«Ά
okay that's the whole page, you ate that. this is CARGO-REPO...ATIBILITIES(1) from the General Commands Manual, and yeah the title really is that long, the header is just the page name echoing back at you like a vibe check. no version number, no date, just the man page name twice because that's the format, iykyk. go fix your future incompatibilities bestie, ily π
β¨π
π¦ where this page comes from
- ubuntu stonking: cargo-1.96 1.96.1+dfsg-0ubuntu1 Β· MIT OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms