Doubt regarding Cargo update

⚓ Rust    📅 2025-12-10    👤 surdeus    👁️ 9      

surdeus

Warning

This post was published 38 days ago. The information described in this article may have changed.

" When you do want to update a crate, Cargo provides the command update , which will ignore the Cargo.lock file and figure out all the latest versions that fit your specifications in Cargo.toml . Cargo will then write those versions to the Cargo.lock file."(Chapter 2 of the book)

My question is that i really dont understand this point. I have tried everything from "^0.8.5" to ">0.8.5 , <0.10.0"; still its not changing the version in toml file for rand crate.

Does anyone knows answer to it

2 posts - 2 participants

Read full topic

🏷️ Rust_feed