Closed as not planned
Description
[package]
name = "a"
version = "0.0.1"
authors = []
build = "build.rs"
[dependencies.compile_msg]
git = "https://github.com/huonw/compile_msg"
// build.rs
fn main() {}
// src/main.rs
fn main() { println!("hi") }
$ cargo clean && cargo build
Compiling a v0.0.1 (file:///home/huon/projects/test-rust/tmp/a)
Compiling compile_msg v0.1.0 (https://github.com/huonw/compile_msg#569c6f18)
$ ./target/a # it worked!
hi
Without the build = ...
line the output of cargo build
is
Compiling compile_msg v0.1.0 (https://github.com/huonw/compile_msg#569c6f18)
Compiling a v0.0.1 (file:///home/huon/projects/test-rust/tmp/a)
I was expecting something like
Compiling build command a v0.0.1 (file:///home/huon/projects/test-rust/tmp/a)
Compiling compile_msg v0.1.0 (https://github.com/huonw/compile_msg#569c6f18)
Compiling a v0.0.1 (file:///home/huon/projects/test-rust/tmp/a)
(Possibly renaming the first line to Executing build command ...
or even having a separate line for when it is executed.)