cargo-prepublish 0.1.0

A cargo plugin to help prepare a crate for publishing to Crates.io
cargo-prepublish-0.1.0 is not a library.

Cargo-prepublish

A Cargo plugin to help setup and prepare a Crate before publishing.

How Does it work?

It reads your cargo.toml file and based on the values not present it will either set defaults or prompt you for input.

Some of the prompts will be required and others optional.

How to use

cargo install cargo-prepublish

# To make changes to the Cargo.toml file
cargo prepublish

# To make changes to the Cargo.toml file with just the defaults and not interactivity
cargo prepublish -n
# OR
cargo prepublish --non-interactive

# To check if the Cargo.toml is valid
cargo prepublish -v
# OR
cargo prepublish --valid

Limitations

  • The Cargo.toml file structure might change. A backup file will be made though just in case.
  • Similar to the previous, any comments will most likely be lost.

Contributions

Any contributions are welcome. If you find a bug, have a suggestion or feature request, please open a issue.