Crate cargo_msrv_prep

Source
Expand description

Cargo subcommand useful to prepare for determining/verifying a crate’s MSRV.

This crate is a library used by the two cargo commands provided:

  • cargo-msrv-prep
  • cargo-msrv-unprep

This library is not meant for external use and makes no guarantee on API stability.

To install cargo-msrv-prep, see the project’s GitHub page.

Re-exports§

pub use result::Error;
pub use result::Result;

Modules§

common_args
metadata
result

Constants§

DEFAULT_MANIFEST_BACKUP_SUFFIX
Default suffix used to backup manifest files before determining/verifying MSRV.
DEFAULT_MANIFEST_FILE_NAME
Default name of a Cargo manifest file.
LOCKFILE_EXT
Extension used for lockfiles.
RUST_VERSION_SPECIFIER
Field in the package section of a manifest that stores the package’s MSRV.

Functions§

backup_manifest
Backs up a manifest file by copying it to a new file next to it.
maybe_merge_msrv_dependencies
Merges optional MSRV dependencies in a Cargo manifest if they exist.
maybe_restore_manifest
If a backup manifest exists next to the given manifest, restores it.
remove_rust_version
Removes the rust-version field from a Cargo manifest’s package section, if present.