[package]
name = "a"
version = "0.0.1"
authors = []
build = "build.rs"
[dependencies.compile_msg]
git = "https://github.com/huonw/compile_msg"
// 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.)
Without the
build = ...line the output ofcargo buildisI was expecting something like
(Possibly renaming the first line to
Executing build command ...or even having a separate line for when it is executed.)