3 ms·
> Doesn't Cargo depend on being able to 'git clone' software for it to be installable? No. The registry is controlled using git, and Cargo allows you to pull i
by richardwhiuk 6y ago
> Doesn't Cargo depend on being able to 'git clone' software for it to be installable?
No. The registry is controlled using git, and Cargo allows you to pull in software via git, but Rust projects don't need to be using git.
- steveklabnik 6y agoTo be a little more explicit about it: * The index of packages on crates.io is stored in a git repository * Cargo knows how to clone that down without you having git installed * The contents of packages are not acquired by doing a git clone; source code is stored in an S3 bucket, and Cargo downloads it directly. * You can have your project depend on a package that lives in a git repository, but you cannot upload a crate to crates.io that depends on a git repository. This means that this feature is mostly useful for end projects and private libraries, not public dependencies.