How to?

How to publish a package on crates.io correctly?

Apr 6, 2024
langsrustpackage
1 Minutes
86 Words
This article was last updated on May 27, 2026 and some of the information may no longer be applicable due to the passage of time.

How to publish a package on crates.io correctly?

在 crates.io 发布 0.1.1 版本后,接下来的小改动先上传到 github 上,此时是否如何修改 Cargo.toml 中的版本号(比如修改为 0.1.2 或 0.1.1.1)?

根据 https://github.com/rust-random/rand/blob/master/Cargo.toml 中的做法,在已发布到 crates.io 的版本基础上进行的小改动不修改版本号,仍然是 0.1.1。

Article title:How to publish a package on crates.io correctly?
Article author:Julyfun
Release time:Apr 6, 2024
Copyright 2026
Sitemap