From 1e902d72d5bf19a83bd34c3b0c21d556ba7abc52 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Tue, 28 Nov 2023 09:53:30 +0100 Subject: [PATCH] WIP: Don't treat the `vulkan.` (lowercase?) namespace as "ignored" Gir.toml glob matches don't seem to function: [[object]] name = "vulkan.*" status = "generate" [[object]] name = "vulkan.*" status = "generate" --- src/analysis/rust_type.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/analysis/rust_type.rs b/src/analysis/rust_type.rs index a253d5689..d26d57d49 100644 --- a/src/analysis/rust_type.rs +++ b/src/analysis/rust_type.rs @@ -68,7 +68,17 @@ impl RustType { type_name.as_str() ); - if env.type_status(&type_id.full_name(&env.library)).ignored() { + // if env.namespaces[type_id.ns_id].higher_crate_name == "vulkan" { + // dbg!(&type_name); + // dbg!(&type_id.full_name(&env.library)); + // // dbg!(&env.config.objects); + // // panic!(); + // } + if env.type_status(&type_id.full_name(&env.library)).ignored() + // TODO + && env.namespaces[type_id.ns_id].higher_crate_name != "vulkan" + { + // dbg!(&type_name); return Err(TypeError::Ignored(type_name)); } }