Don't mark dnn_superres as a core module
MODIFY
build.rs
build.rs
@@ -29,8 +29,6 @@ static CORE_MODULES: Lazy<HashSet<&'static str>> = Lazy::new(|| HashSet::from_it
"core",
#[cfg(not(feature = "opencv-32"))]
"dnn",
- #[cfg(feature = "opencv-4")]
- "dnn_superres",
"features2d",
"flann",
#[cfg(feature = "opencv-4")]

MODIFY
build_generator.rs
build_generator.rs
@@ -15,8 +15,8 @@ use glob::glob;
use super::{
file_copy_to_dir,
get_versioned_hub_dirs,
- is_core_module,
HOST_TRIPLE,
+ is_core_module,
MODULES,
OUT_DIR,
Result,

Don't mark dnn_superres as a core module