//! A set of models directly related to `Cargo.toml` files mod deps; pub use deps::Dependency; mod error; pub use error::CargoError; mod parser; pub(crate) use parser::{get_members, parse_dependencies, parse_root_toml, parse_toml}; mod gen; pub(crate) use gen::{sync, update_dependency}; pub(crate) type Result = std::result::Result; use toml_edit::Value; /// Turn a toml Value into a String, panic if it fails pub(self) fn v_to_s(v: &Value) -> String { match v { Value::String(s) => s.to_string(), _ => unreachable!(), } }