-
Notifications
You must be signed in to change notification settings - Fork 10
Whole project rebuilds every time #7
Copy link
Copy link
Open
Description
Project build cache is broken when using tonic-buf-build in build.rs, for example:
fn main() {
println!("cargo::rerun-if-changed=proto");
let out_dir = PathBuf::from(std::env::var("OUT_DIR").unwrap());
let mut config = prost_build::Config::new();
tonic_buf_build::compile_from_buf_workspace(
tonic_build::configure().build_client(true).out_dir(out_dir),
Some(config),
)
.unwrap();
}Even with no changes, every cargo build takes few seconds and it runs build script again... That makes this library unusable, as it basically breaks the responsivness of IDE's intellisense.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels