pub fn toml_from_path(toml_path: impl ToString) -> MutexGuard<'static, Value>
Expand description

toml_from_path used to read toml file and parse contents to toml data

{
   let cargo_toml = tsu::toml_from_path("./Cargo.toml");
   let dependencies = cargo_toml.get("dependencies").unwrap();
   println!("{:#?}", &dependencies);
}