codemp/src/ffi/mod.rs

22 lines
573 B
Rust
Raw Normal View History

2024-09-04 21:37:35 +02:00
//! ### FFI
//! Foreign-Function-Interface glue code, each gated behind feature flags
//!
//! For all except java, the resulting shared object is ready to use, but external packages are
//! available to simplify the dependancy and provide type hints in editor.
/// java bindings, built with [jni]
2024-03-09 23:27:08 +01:00
#[cfg(feature = "java")]
pub mod java;
2024-09-04 21:37:35 +02:00
/// lua bindings, built with [mlua]
#[cfg(feature = "lua")]
pub mod lua;
2024-03-10 12:42:56 +01:00
2024-09-04 21:37:35 +02:00
/// javascript bindings, built with [napi]
2024-03-10 12:42:56 +01:00
#[cfg(feature = "js")]
pub mod js;
2024-09-04 21:37:35 +02:00
/// python bindings, built with [pyo3]
#[cfg(feature = "python")]
pub mod python;