Cargo Dependency Version
Haixin Pang March 06, 2025 #RUST #FAQFirst
Check the version of the dependency you want to use. Get the repository URL of the dependency from crates.io and tag(or commit hash) of the version you want to use.
Second
Write the dependency in the Cargo.toml file as follows:
[]
= { = "url", = "version" }
Or
= { = "url", = "commit" }
Third
Run the following command to update the dependency: