Skip to content

Commit

Permalink
Log entry 1
Browse files Browse the repository at this point in the history
Today I learned that `rustfmt` is now a part of `rustup`. So I need
to actually look it up in PATH instead of using `cargo-fmt`.

I also learned that `mk` is the file that does the main work and is
shared by `cargo-new` and `cargo-init`, as expected.

Printing inside `mk` produces output as expected.
  • Loading branch information
Kinrany committed Jan 21, 2020
1 parent 9826222 commit 6057c93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cargo/ops/cargo_new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,8 @@ fn init_vcs(path: &Path, vcs: VersionControl, config: &Config) -> CargoResult<()
}

fn mk(config: &Config, opts: &MkOptions<'_>) -> CargoResult<()> {
println!("Entering 'mk'");

let path = opts.path;
let name = opts.name;
let cfg = config.get::<CargoNewConfig>("cargo-new")?;
Expand Down Expand Up @@ -719,6 +721,8 @@ mod tests {
config.shell().warn(msg)?;
}

println!("Leaving 'mk'");

Ok(())
}

Expand Down

0 comments on commit 6057c93

Please sign in to comment.