Radar · Rust · Archive · Week 28 · Jul 7 – 13, 2025
Crates.io development update
Nice to knowtooling
- What changed
- The Rust team released a development update for crates.io, describing ongoing work and future plans.
- Production impact
- The source does not say.
- Try it
- Visit the link to read the latest roadmap for crates.io.
- Source
- blog.rust-lang.org/2025/07/11/crates-io-development-update-2025-07/
Understand it, then run it
Crates.io now lets you publish crates from a CI/CD pipeline without having to store an API token in your repository. The new feature, called *Trusted Publishing*, works by linking a GitHub repository to crates.io. When that repository pushes a tag, crates.io gives it a short‑lived token that the CI can use to publish. Other parts of the update add nicer images for crates, make it easier to rebuild docs on docs.rs, and let crate authors use GitHub‑style alerts in their README files. These changes make it simpler and safer to publish crates automatically and improve the look of crate pages.
Run it now
// This program demonstrates the new Trusted Publishing workflow.
// In practice, you would use the crates-io-auth-action in a GitHub Actions
// workflow to obtain a short‑lived token. Here we simply print a message.
fn main() {
println!("Trusted Publishing is now available on crates.io.");
}
What it printed when we ran it on Rust 1.98.1 (edition 2024)
Trusted Publishing is now available on crates.io.
Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.
Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed