3 ms·
How do you pin a dependency to a particular version or git sha? I can't find anything in the FAQ or docs that implies that it's possible.
by tomlu 12y ago
How do you pin a dependency to a particular version or git sha? I can't find anything in the FAQ or docs that implies that it's possible.
- cgag 12y agoFrom announcement email: The next features we're planning on working on are: - Supporting refs other than `master` from git packages
- sp332 12y agoAs a workaround, I guess you could fork a specific version on your own github account, and use that as the dependency?
- drbawb 12y agoYou don't even need to fork it on Github, Cargo is just passing the URI straight to the git tooling. You can keep it on your local filesystem and reference it w/ `file:///path/to/repo.git` -- you can also use SSH and HTTPS URIs from any other repository host, not just github! So you could just clone the repo to some `vendor` directory and move `master` to whatever version you want!
- kibwen 12y agoThe Rust folk are adamant about supporting versioned libraries out of the box, so support for this will definitely land before 1.0.