fn qualify_cargo_toml_paths_in_text(cargo_toml_content: &str, base_dir: &path::Path) -> String {
    // Lacking a real parser due to constraints, look for a couple of common
    // patterns. TODO: Roll a little parser for this.
    let mut cargo_toml = cargo_toml_content.to_owned();
    cargo_toml = cargo_toml.replace("path = \"", &format!("path = \"{}/", base_dir.display()));
    cargo_toml = cargo_toml.replace("path=\"", &format!("path=\"{}/", base_dir.display()));
    cargo_toml = cargo_toml.replace("path = '", &format!("path = '{}/", base_dir.display()));
    cargo_toml = cargo_toml.replace("path='", &format!("path='{}/", base_dir.display()));
    cargo_toml
}
// All this toml stuff is completely manual to avoid introducing any
// dependencies in this library, since the whole point is to work around
// dependency issues.
All this toml stuff is completely manual to avoid introducing any
dependencies in this library, since the whole point is to work around
dependency issues.
All this toml stuff is completely manual to avoid introducing any dependencies in this library since the whole point is to work around dependency issues .
fn qualify_cargo_toml_paths_in_text(cargo_toml_content: &str, base_dir: &path::Path) -> String {
    // Lacking a real parser due to constraints, look for a couple of common
    // patterns. TODO: Roll a little parser for this.
    let mut cargo_toml = cargo_toml_content.to_owned();
    cargo_toml = cargo_toml.replace("path = \"", &format!("path = \"{}/", base_dir.display()));
    cargo_toml = cargo_toml.replace("path=\"", &format!("path=\"{}/", base_dir.display()));
    cargo_toml = cargo_toml.replace("path = '", &format!("path = '{}/", base_dir.display()));
    cargo_toml = cargo_toml.replace("path='", &format!("path='{}/", base_dir.display()));
    cargo_toml
}
fn qualify_cargo_toml_paths_in_text ( cargo_toml_content : & str , base_dir : & path :: Path ) -> String { // Lacking a real parser due to constraints, look for a couple of common // patterns. TODO: Roll a little parser for this. let mut cargo_toml = cargo_toml_content . to_owned ( ) ; cargo_toml = cargo_toml . replace ( " \" " , & format ! ( " \" " base_dir display ( ) ) ) ; cargo_toml = cargo_toml . replace ( " \" " , & format ! ( " \" " base_dir display ( ) ) ) ; cargo_toml = cargo_toml . replace ( " " , & format ! ( " " base_dir display ( ) ) ) ; cargo_toml = cargo_toml . replace ( " " , & format ! ( " " base_dir display ( ) ) ) ; cargo_toml }
All this toml stuff is completely manual to avoid introducing any
dependencies in this library, since the whole point is to work around
dependency issues.
All this toml stuff is completely manual to avoid introducing any dependencies in this library since the whole point is to work around dependency issues .
cargo_toml_content
&str
base_dir
&path::Path