Publish to crates.io
Section |
---|
Publication |
The publish
folder contains a placeholder crate, so that the book could be located when searching on crates.io
.
- Go to
crates.io
, sign in, and create an API token inAccount Settings
>API Tokens
. - Use
cargo login
to save the token in$CARGO_HOME/credentials.toml
. cd publish; cargo build; cargo clippy; cargo run; cargo doc; cargo package
- Review the packaging output in
/cargo-target-rust_howto/target/package
. - When ready,
cargo publish --dry-run; cargo publish
TODO: edit