fix(types/types_list): Add the supported primitive types

Otherwise, the generated type paths lead nowhere.
This commit is contained in:
Benedikt Peetz 2024-03-27 22:13:05 +01:00
parent a58030ce7e
commit febb2deae3
Signed by: bpeetz
GPG Key ID: A5E94010C3A642AD
2 changed files with 15 additions and 0 deletions

View File

@ -38,6 +38,7 @@ macro_rules! header {
/// ///
// NOTE: Every type here must have the [`Convertible`] implemented on it (@soispha) // NOTE: Every type here must have the [`Convertible`] implemented on it (@soispha)
// And be added to the `convert/c/auxiliary/idendentifier/mod.rs` file // And be added to the `convert/c/auxiliary/idendentifier/mod.rs` file
// And add it to the types list (`./types_list.rs`)
pub const BASE_TYPES: [(&'static std::primitive::str, usize); 11] = [ pub const BASE_TYPES: [(&'static std::primitive::str, usize); 11] = [
// Unsigned // Unsigned
("u8", 0), ("u8", 0),

View File

@ -40,3 +40,17 @@ pub struct Vec<T> {
pub(crate) length: usize, pub(crate) length: usize,
pub(crate) capacity: usize, pub(crate) capacity: usize,
} }
// Unsigned
pub use std::primitive::u16;
pub use std::primitive::u32;
pub use std::primitive::u64;
pub use std::primitive::u8;
// Signed
pub use std::primitive::i16;
pub use std::primitive::i32;
pub use std::primitive::i64;
pub use std::primitive::i8;
// Float
pub use std::primitive::f32;
pub use std::primitive::f64;