Preventing Accidental Publishing to Crates.io

Prior to publishing, you may want to specify which registries a crate may be published to, using the [package.publish] key in Cargo.toml, to avoid accidentally publishing to Crates.io:

# Cargo.toml

[package]
name = "my-proprietary-crate"
publish = ["my-crate-registry"]