fn toml(root: &Root) -> Result<Option<Toml>> {
    let path = root.path().join("Cross.toml");

    if path.exists() {
        Ok(Some(Toml {
            table: Value::Table(Parser::new(&file::read(&path)?).parse()
                .ok_or_else(|| {
                    format!("couldn't parse {} as TOML", path.display())
                })?),
        }))
    } else {
        Ok(None)
    }
}
/// Parses the `Cross.toml` at the root of the Cargo project (if any)
Parses the `Cross.toml` at the root of the Cargo project (if any)
Parses the ` Cross . toml ` at the root of the Cargo project ( if any )
fn toml(root: &Root) -> Result<Option<Toml>> {
    let path = root.path().join("Cross.toml");
    if path.exists() {
        Ok(Some(Toml {
            table: Value::Table(Parser::new(&file::read(&path)?).parse()
                .ok_or_else(|| {
                    format!("couldn't parse {} as TOML", path.display())
                })?),
        }))
    } else {
        Ok(None)
    }
}
fn toml ( root : & Root ) -> Result < Option < Toml > > { let path = root . path ( ) . join ( " " ) ; if path . exists ( ) { Ok ( Some ( Toml { table : Value :: Table ( Parser :: new ( & file :: read ( & path ) ? ) . parse ( ) . ok_or_else ( | | { format ! ( " " path display ( ) ) } ) ? ) , } ) ) } else { Ok ( None ) } }
Parses the `Cross.toml` at the root of the Cargo project (if any)
Parses the ` Cross . toml ` at the root of the Cargo project ( if any )
root
&Root