fix(types/types_list): Add the supported primitive types
Otherwise, the generated type paths lead nowhere.
This commit is contained in:
parent
a58030ce7e
commit
febb2deae3
|
@ -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),
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Reference in New Issue