pub fn update_custom_cargo_toml(project_dir: &PathBuf) -> Result<()> {
    let mut rauk_path = project_dir.clone();
    rauk_path.push(RAUK_CARGO_TOML);

    let mut cargo_path = project_dir.clone();
    cargo_path.push(CARGO_TOML);

    let mut user_manifest_copy = Manifest::from_path(&cargo_path)?;
    let template = read_rauk_patch_template()?;
    patch_rauk_cargo_toml(&mut user_manifest_copy, &template);

    let toml_output = toml::to_string(&user_manifest_copy)?;
    write(rauk_path, toml_output)?;

    Ok(())
}
/// Updates the custom patched rauk configuration inside the project `path`
/// If no such configuration exists it will create a new one.
///
/// * `project_dir` - The path to the RTIC project
Updates the custom patched rauk configuration inside the project `path`
If no such configuration exists it will create a new one.

`project_dir` - The path to the RTIC project
Updates the custom patched rauk configuration inside the project ` path ` If no such configuration exists it will create a new one . ` project_dir ` - The path to the RTIC project
pub fn update_custom_cargo_toml(project_dir: &PathBuf) -> Result<()> {
    let mut rauk_path = project_dir.clone();
    rauk_path.push(RAUK_CARGO_TOML);
    let mut cargo_path = project_dir.clone();
    cargo_path.push(CARGO_TOML);
    let mut user_manifest_copy = Manifest::from_path(&cargo_path)?;
    let template = read_rauk_patch_template()?;
    patch_rauk_cargo_toml(&mut user_manifest_copy, &template);
    let toml_output = toml::to_string(&user_manifest_copy)?;
    write(rauk_path, toml_output)?;
    Ok(())
}
pub fn update_custom_cargo_toml ( project_dir : & PathBuf ) -> Result < ( ) > { let mut rauk_path = project_dir . clone ( ) ; rauk_path . push ( RAUK_CARGO_TOML ) ; let mut cargo_path = project_dir . clone ( ) ; cargo_path . push ( CARGO_TOML ) ; let mut user_manifest_copy = Manifest :: from_path ( & cargo_path ) ? ; let template = read_rauk_patch_template ( ) ? ; patch_rauk_cargo_toml ( & mut user_manifest_copy , & template ) ; let toml_output = toml :: to_string ( & user_manifest_copy ) ? ; write ( rauk_path , toml_output ) ? ; Ok ( ( ) ) }
Updates the custom patched rauk configuration inside the project `path`
If no such configuration exists it will create a new one.
Updates the custom patched rauk configuration inside the project ` path ` If no such configuration exists it will create a new one .
project_dir
&PathBuf
project_dir
&PathBuf