Open wucke13 opened 1 year ago
Currently, the build.rs of oqs-sys is configured so that oqs is recompiled every time cargo build is executed. This really takes the fun away from cargo watch etc., as it blows the time of a cargo build with an already filled target/ to 20 seconds+.
build.rs
oqs-sys
cargo build
cargo watch
target/
https://doc.rust-lang.org/cargo/reference/build-scripts.html#change-detection provides some guidance on how to refine the behavior in this regard.
This should already be caught by: https://github.com/open-quantum-safe/liboqs-rust/blob/main/oqs-sys/build.rs#L126-L129....
though at least CC should be added to the environment variables, maybe also CMAKE_*
CC
CMAKE_*
Currently, the
build.rs
ofoqs-sys
is configured so that oqs is recompiled every timecargo build
is executed. This really takes the fun away fromcargo watch
etc., as it blows the time of acargo build
with an already filledtarget/
to 20 seconds+.https://doc.rust-lang.org/cargo/reference/build-scripts.html#change-detection provides some guidance on how to refine the behavior in this regard.