cargo_next
pub fn get_version(path: impl AsRef<Path>) -> Result<String, Error>
Returns the version inside a Cargo.toml file.
Cargo.toml
path
The version as a String if it could be successfully extracted, otherwise an error.
String