opencv-rust
opencv-rust copied to clipboard
Ability to disable rerun
It seems to me that rerun for the opencv crate works too often. Rebuild takes a lot of time
Therefore, I would like to be able to disable the call to https://github.com/twistedfall/opencv-rust/blob/2cb0af9eadc0b38a1c154e9d5538748baea06a6a/build.rs#L391, for example, using an environment variable.
This way, I can take all the risks of an incorrect rebuild on myself and, if something happens, just call cargo clean
To be honest such a hack doesn't feel right with me. Maybe it's a good idea to investigate what's triggering those rebuilds and fix this? Either on the crate side or in your setup. Additionally to speed up rebuilds you can try only including the OpenCV modules that you're using by specifying something like:
opencv = { version = "0.88", default-features = false, features = ["calib3d", "features2d", "flann"]}
I hope that the issue you were having is not happening anymore!