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.
This commit is contained in:
Benedikt Peetz 2024-03-27 10:01:51 +01:00
parent 9a8ccc9cc2
commit 37ba451362
Signed by: bpeetz
GPG Key ID: A5E94010C3A642AD
1 changed files with 6 additions and 4 deletions

View File

@ -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