41 lines
1.1 KiB
Rust
41 lines
1.1 KiB
Rust
// BID-FFI: Box Interface Definition with Foreign Function Interface
|
|
// Everything is Box philosophy meets practical FFI/ABI design!
|
|
|
|
pub mod bridge;
|
|
pub mod error;
|
|
#[cfg(all(feature = "plugins", not(target_arch = "wasm32")))]
|
|
pub mod loader;
|
|
pub mod metadata;
|
|
pub mod plugin_api;
|
|
pub mod plugins;
|
|
pub mod tlv;
|
|
pub mod types;
|
|
// pub mod registry; // legacy - v2 plugin system uses BoxFactoryRegistry instead
|
|
// pub mod plugin_box; // legacy - FileBox専用実装
|
|
pub mod generic_plugin_box;
|
|
|
|
pub use bridge::*;
|
|
pub use error::*;
|
|
#[cfg(all(feature = "plugins", not(target_arch = "wasm32")))]
|
|
pub use loader::*;
|
|
pub use metadata::*;
|
|
pub use plugin_api::*;
|
|
pub use tlv::*;
|
|
pub use types::*;
|
|
// pub use registry::*; // legacy - v2 plugin system uses BoxFactoryRegistry instead
|
|
// pub use plugin_box::*; // legacy
|
|
pub use generic_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;
|