Skip to main content

persist_deploy_block

Function persist_deploy_block 

Source
pub fn persist_deploy_block(
    cargo_toml: &Path,
    d: &DeployDefaults,
    on_exists: OnExists,
) -> Result<()>
Expand description

Persist the deploy block into the given Cargo.toml using toml_edit, honoring the on_exists policy. Aborts with Err on collision when policy is Abort. Preserves all unrelated keys byte-for-byte.