From 37ba451362703d9dbcb287e6989ae7a21626a9c4 Mon Sep 17 00:00:00 2001 From: Soispha Date: Wed, 27 Mar 2024 10:01:51 +0100 Subject: [PATCH] fix(types): Remove top-level support for generic types These would still parse and would generate _stuff_, but the generated stuff is just not ideal yet. So better not accept them, until their internal support has matured. --- src/types/mod.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/types/mod.rs b/src/types/mod.rs index 3844a7c..6785f8f 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -37,7 +37,8 @@ macro_rules! header { /// The str is the name, the index represents the expected generic arguments /// // NOTE: Every type here must have the [`Convertible`] implemented on it (@soispha) -pub const BASE_TYPES: [(&'static std::primitive::str, usize); 14] = [ +// And be added to the `convert/c/auxiliary/idendentifier/mod.rs` file +pub const BASE_TYPES: [(&'static std::primitive::str, usize); 11] = [ // Unsigned ("u8", 0), ("u16", 0), @@ -53,9 +54,10 @@ pub const BASE_TYPES: [(&'static std::primitive::str, usize); 14] = [ ("f64", 0), // Other ("String", 0), - ("Option", 1), - ("Vec", 1), - ("Result", 2), + // FIXME(@soispha): These work, but the generated code is not really ideal <2024-03-26> + // ("Option", 1), + // ("Vec", 1), + // ("Result", 2), ]; /// The first value is the file name, the second it's contents