woboq/qmetaobject-rs

qttypes/build.rs rebuilds every time, even if no changes

Closed this issue · 2 comments

qttypes/build.rs contains this code at the bottom:

println!("cargo:rerun-if-changed=src/lib.rs");
println!("cargo:rerun-if-changed=src/core/primitives.rs");
println!("cargo:rerun-if-changed=src/core/qbytearray.rs");
println!("cargo:rerun-if-changed=src/core/qstring.rs");
println!("cargo:rerun-if-changed=src/core/qurl.rs");
println!("cargo:rerun-if-changed=src/gui/qcolor.rs");

The core directory was renamed to qtcore and the file structure also changed, so this should be updated accordingly

Ah yes, i notice it now.

(Ideally i should change the cpp-build crate so it does that automatically)

Released a new version of qttypes with the fix