opencv-rust icon indicating copy to clipboard operation
opencv-rust copied to clipboard

Ability to disable rerun

Open guskovd opened this issue 1 year ago • 1 comments

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

guskovd avatar Jan 11 '24 20:01 guskovd

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"]}

twistedfall avatar Jan 12 '24 08:01 twistedfall

I hope that the issue you were having is not happening anymore!

twistedfall avatar Apr 15 '24 09:04 twistedfall