Open
Description
Hi I'm not sure if this is a general rust question, or something related specifically to this build.rs
.
I see that modules are generated based on what the found opencv library what compiled with. So if let's say sfm
is disabled, no function for the opencv::sfm
modules will exists.
How to get access to that in my crate so I can do some fallback if the function wasn't generated on avoid build failure?
From my small understanding:
cfg
can be defined by abuild.rs
, but then I would have to reimplement all of theLibrary::probe()
logic.- How can I consume the library used in the build script of this repo?
An alternative would be to use features flags, but I would like to keep that as last resort.
Metadata
Metadata
Assignees
Labels
No labels