Function cargo_edit::get_crate_name_from_gitlab
[−]
[src]
pub fn get_crate_name_from_gitlab(repo: &str) -> Result<String, FetchGitError>
Query crate name by accessing a gitlab 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 gitlab is an error or in an incorrect format.