Function parse_dependencies
Source pub fn parse_dependencies(
cargo_toml_content: &str,
) -> Result<Vec<String>, Box<dyn Error>>
Expand description
Parses the dependencies from the content of a Cargo.toml file.
§Arguments
cargo_toml_content
- The content of the Cargo.toml file as a string.
§Returns
A Result containing a Vec of dependency names or an error if parsing fails.