#[cxx::bridge]
pub mod ffi {
unsafe extern "C++" {
include!("mlx/backend/metal/metal.h");
#[namespace = "mlx::core::metal"]
fn is_available() -> bool;
#[namespace = "mlx::core::metal"]
fn cache_enabled() -> bool;
#[namespace = "mlx::core::metal"]
fn set_cache_enabled(enabled: bool);
}
}
#[cfg(test)]
mod tests {
#[test]
fn test_is_available() {
let _ = super::ffi::is_available();
}
}