[−][src]Function cargo_clone::clone
pub fn clone(
method_name: &str,
spec: &str,
version: Option<&str>,
extra: &[&str]
) -> Result<(), Error>
A helper function for cloning a crate into the current working directory.
method_name- Method to fetch crate. Options are "crate", "git", "hg", "pijul", "fossil", "auto"spec- The name of the crate to cloneversion- The semantic version (semver) of the spec crate to cloneextra- Additional arguments passed to clone command.