Files
hakorune/src/bid/mod.rs

37 lines
767 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 mod metadata;
pub mod plugin_api;
pub mod bridge;
pub mod plugins;
pub mod loader;
pub mod registry;
pub mod plugin_box;
pub use types::*;
pub use tlv::*;
pub use error::*;
pub use metadata::*;
pub use plugin_api::*;
pub use bridge::*;
pub use loader::*;
pub use registry::*;
pub use plugin_box::*;
/// 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;