by r2vcap · 3y ago · 0 comments
Problems of Swift: Swift can add dependencies using git URLs, but there is no central package registry.
Both languages should have a central package registry and the ability to add dependencies using git URLs, as it would make flexible dependency management much easier. For a central package registry, it makes it easier to find popular packages, but it has a problem of centralization.
There is absolutely no lack of that in cargo; this is literally the first sentence in the relevant section in the doc (https://doc.rust-lang.org/cargo/reference/specifying-depende...):
Your crates can depend on other libraries from crates.io or other registries, *git repositories*, or subdirectories on your local file system.
https://doc.rust-lang.org/cargo/reference/specifying-depende...