55
Could rust do with a crates.io alternative?
(programming.dev)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
Semver checks don’t work with straight git urls, since you can only link to an explicit branch or commit, not a version.
versioncan be passed withgitactually. And it will need to match with the version set inCargo.tomlfrom the git source.I wouldn't call that an alternative to crate registries though (of which,
crates.iois only one impl).Also tangentially related,
cargo-vendoris a thing.Semver strings allows stuff like "version 2.5.x, but below 2.5.6". Then cargo calculates the best solution for satisfying all dependency specifications from all packages using a single version (if possible).
Specifying a version in addition to the git branch doesn't help there at all, because you still have to do it manually then.
Yes. That is in part why I mentioned that it's not a real alternative, and mentioned
cargo-vendoras a possible basis for a less manual serviceable solution.Serviceable, but not necessarily good still. Anti-
crates.ioextremists would still be better off using an alternative crates registry*.* That's something that already exists btw. True extremists don't have to wait for the HN leak-promised Good Stuff.