Publishing To crates.io¶
Before publishing¶
Make sure:
- your crates.io email address is verified
- crate versions are bumped consistently
- internal dependency versions match the crate versions being released
Package check¶
task cargo-package-check
Notes:
forestfire-datais the only crate that can be fully packaged and verified before release.forestfire-corecannot be packaged against crates.io untilforestfire-datahas already been published and indexed at the current version, because the packaged crate resolvesforestfire-datafrom crates.io rather than from the workspace path dependency.- after publishing
forestfire-data, runcargo publish -p forestfire-core --dry-runand then publishforestfire-core.
Publish¶
cargo publish -p forestfire-data
Wait for crates.io indexing, then:
cargo publish -p forestfire-core --dry-run
cargo publish -p forestfire-core
Publish order is:
forestfire-dataforestfire-core
forestfire-inference and the example crate stay workspace-local and are not published.
If crates.io has not indexed the previous crate yet, wait a minute and retry the remaining publish step.