3 ms·
With cargo (Rust build tool) you don't need to use crates.io _always_ . For instance, you can target a repository and even a specific commit like this in gour
by eb0la 7y ago
With cargo (Rust build tool) you don't need to use crates.io _always_ .
For instance, you can target a repository and even a specific commit like this in gour cargo.toml file:
[dependencies]
package = { git = "https://github.com/...../something.git", rev = "commit_hash_like_9876541_for_instance" }
- GrayShade 7y agoYou can even host your own package registry, but I didn't think it would be worth mentioning in the context of that question.
- echelon 7y agoYou can still have your dependencies reference the source cargo packages, but overwrite it in a patch or vendor section. Don't specify the git repo directly in dependencies unless it's an unpublished crate.