[−][src]Function cargo_edit::get_crate_name_from_github
pub fn get_crate_name_from_github(repo: &str) -> Result<String>
Query crate name by accessing a github repo Cargo.toml
The name will be returned as a string. This will fail, when
- there is no Internet connection,
- Cargo.toml is not present in the root of the master branch,
- the response from github is an error or in an incorrect format.