23 lines
515 B
Rust
23 lines
515 B
Rust
|
|
// BID-FFI: Box Interface Definition with Foreign Function Interface
|
||
|
|
// Everything is Box philosophy meets practical FFI/ABI design!
|
||
|
|
|
||
|
|
pub mod types;
|
||
|
|
pub mod tlv;
|
||
|
|
pub mod error;
|
||
|
|
|
||
|
|
pub use types::*;
|
||
|
|
pub use tlv::*;
|
||
|
|
pub use error::*;
|
||
|
|
|
||
|
|
/// BID-1 version constant
|
||
|
|
pub const BID_VERSION: u16 = 1;
|
||
|
|
|
||
|
|
/// Platform-dependent pointer size
|
||
|
|
#[cfg(target_pointer_width = "32")]
|
||
|
|
pub type Usize = u32;
|
||
|
|
|
||
|
|
#[cfg(target_pointer_width = "64")]
|
||
|
|
pub type Usize = u64;
|
||
|
|
|
||
|
|
/// Standard alignment requirement
|
||
|
|
pub const BID_ALIGNMENT: usize = 8;
|