Expand description
§monochange_cargo
monochange_cargo discovers Cargo packages and surfaces Rust-specific release evidence.
Reach for this crate when you want to scan Cargo workspaces into normalized monochange_core records and optionally feed Rust semver evidence into release planning.
§Why use it?
- discover Cargo workspaces and standalone crates with one adapter
- normalize crate manifests and dependency edges for the shared planner
- attach Rust semver evidence through
RustSemverProvider
§Best for
- building Cargo-aware discovery flows without the full CLI
- feeding Rust semver evidence into release planning
- converting Cargo workspace structure into shared
monochange_corerecords
§Public entry points
discover_cargo_packages(root)discovers Cargo workspaces and standalone cratesCargoAdapterexposes the shared adapter interfaceRustSemverProviderparses explicit Rust semver evidence from change input
§Scope
- Cargo workspace glob expansion
- crate manifest parsing
- normalized dependency extraction
- Rust semver provider integration for release planning
Re-exports§
pub use analysis::CargoSemanticAnalyzer;pub use analysis::semantic_analyzer;
Modules§
Structs§
Enums§
Constants§
Functions§
- adapter
- Return the shared Cargo ecosystem adapter.
- cargo_
publish_ array_ excludes_ crates_ io - cargo_
publish_ readiness_ blockers - cargo_
string_ field_ is_ present - default_
dependency_ fields - Return the manifest fields that usually contain dependency versions.
- default_
dependency_ version_ prefix - default_
lockfile_ commands - Return the default lockfile refresh commands for
package. - discover_
cargo_ packages - Discover Cargo packages rooted at
root. - discover_
lockfiles - Discover lockfiles that should be refreshed for
package. - extract_
workspace_ package_ table - load_
configured_ cargo_ package - Load one explicitly configured Cargo package without walking the whole repo.
- lockfile_
requires_ command_ refresh - Return
truewhen a lockfile still needs command-based refresh. - maybe_
read_ workspace_ manifest_ contents - parse_
workspace_ manifest_ value - publish_
blocked_ message - read_
workspace_ package_ table - resolve_
cargo_ placeholder_ license_ metadata - supported_
versioned_ file_ kind - Classify a Cargo versioned file path.
- update_
versioned_ file - Update a parsed Cargo manifest or lockfile in memory.
- update_
versioned_ file_ text - Update Cargo manifest or lockfile text while preserving formatting where possible.
- validate_
versioned_ file - Return the default dependency-version prefix for this ecosystem. Validate that a Cargo versioned file contains a readable version field.
- validate_
workspace_ version_ groups - Validate version-group assignments for workspace-version Cargo packages.
- write_
cargo_ placeholder_ manifest