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:
parent
9a8ccc9cc2
commit
37ba451362
|
@ -37,7 +37,8 @@ macro_rules! header {
|
||||||
/// The str is the name, the index represents the expected generic arguments
|
/// The str is the name, the index represents the expected generic arguments
|
||||||
///
|
///
|
||||||
// NOTE: Every type here must have the [`Convertible`] implemented on it (@soispha)
|
// 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
|
// Unsigned
|
||||||
("u8", 0),
|
("u8", 0),
|
||||||
("u16", 0),
|
("u16", 0),
|
||||||
|
@ -53,9 +54,10 @@ pub const BASE_TYPES: [(&'static std::primitive::str, usize); 14] = [
|
||||||
("f64", 0),
|
("f64", 0),
|
||||||
// Other
|
// Other
|
||||||
("String", 0),
|
("String", 0),
|
||||||
("Option", 1),
|
// FIXME(@soispha): These work, but the generated code is not really ideal <2024-03-26>
|
||||||
("Vec", 1),
|
// ("Option", 1),
|
||||||
("Result", 2),
|
// ("Vec", 1),
|
||||||
|
// ("Result", 2),
|
||||||
];
|
];
|
||||||
|
|
||||||
/// The first value is the file name, the second it's contents
|
/// The first value is the file name, the second it's contents
|
||||||
|
|
Reference in New Issue