Skip to main content

init

Function init 

Source
pub fn init(config: &InitConfig) -> Result<Vec<InitResult>, Error>
Expand description

Initialises per-crate ledgers for the given workspace.

For each member: detects tag pattern, queries git tags and crates.io, diffs them to build ledger entries (registry-published → Published/Yanked, git-only → Pending), and writes the ledger alongside the crate’s Cargo.toml.

§Errors

Returns Error::CrateNotFound if config.crate_filter names a crate that is not a workspace member. Propagates Error::Git, Error::Registry, and Error::Ledger from downstream operations.