Expand description
A library to create a local clone of a Cargo package.
This fetches the repository for a package as defined in the repository
field of a Cargo package. If there is no repository, it can also fetch the
.crate
file from crates.io.
Structs§
- Cloner
- A struct containg all url and workspace information necessary to clone a crate.
Enums§
- Clone
Method Kind - An enum representation of supported cloning methods.
Constants§
- DEFAULT_
BITBUCKET_ URL - https://api.bitbucket.org/2.0/repositories
- DEFAULT_
GITHUB_ URL - https://github.com
- DEFAULT_
GITLAB_ URL - https://gitlab.com
- DEFAULT_
REGISTRY_ URL - https://crates.io
Functions§
- clone
- A helper function for cloning a crate into the current working directory.