fn make_config(ws_root: &Path) -> Config {
    let shell = cargo::core::Shell::new();
    let mut config = cargo::util::Config::new(shell, ws_root.to_path_buf(), cargo_home());
    // Configure is needed to set the target_dir which is needed to write
    // the .rustc_info.json file which is very expensive.
    config
        .configure(
            0,
            false,
            None,
            false,
            false,
            false,
            &Some(target_dir()),
            &[],
            &[],
        )
        .unwrap();
    config
}
/// Creates a new Config.
///
/// This is separate from `do_resolve` to deal with the ownership and lifetime.
Creates a new Config.
This is separate from `do_resolve` to deal with the ownership and lifetime.
Creates a new Config . This is separate from ` do_resolve ` to deal with the ownership and lifetime .
fn make_config(ws_root: &Path) -> Config {
    let shell = cargo::core::Shell::new();
    let mut config = cargo::util::Config::new(shell, ws_root.to_path_buf(), cargo_home());
    // Configure is needed to set the target_dir which is needed to write
    // the .rustc_info.json file which is very expensive.
    config
        .configure(
            0,
            false,
            None,
            false,
            false,
            false,
            &Some(target_dir()),
            &[],
            &[],
        )
        .unwrap();
    config
}
fn make_config ( ws_root : & Path ) -> Config { let shell = cargo :: core :: Shell :: new ( ) ; let mut config = cargo :: util :: Config :: new ( shell , ws_root . to_path_buf ( ) , cargo_home ( ) ) ; // Configure is needed to set the target_dir which is needed to write // the .rustc_info.json file which is very expensive. config . configure ( 0 , false , None , false , false , false , & Some ( target_dir ( ) ) , & [ ] , & [ ] , ) . unwrap ( ) ; config }
Creates a new Config.
Creates a new Config .
ws_root
&Path
ws_root
&Path