kataglyphis_rustprojecttemplate/
lib.rs

1//! Main entry point for Kataglyphis.
2
3#![doc = include_str!("../README.md")]
4#![doc(html_logo_url = "../logo.png")]
5
6#[cfg(not(target_arch = "wasm32"))]
7mod native_only;
8
9pub mod api;
10pub use kataglyphis_core::config;
11pub use kataglyphis_core::detection::Detection;
12pub use kataglyphis_core::logging;
13pub use kataglyphis_telemetry::resource_monitor;
14pub mod platform;
15pub mod utils;
16
17#[cfg(target_os = "windows")]
18#[allow(unused_imports)]
19pub(crate) use kataglyphis_telemetry::gpu_wmi;
20
21#[cfg(feature = "onnxruntime")]
22pub use kataglyphis_inference::ort_ext;
23
24#[cfg(feature = "burn_demos")]
25pub mod burn_demos;
26
27mod frb_generated;
28#[cfg(onnx)]
29pub use kataglyphis_inference::person_detection;
30
31/// C FFI demo stub — returns a fixed integer to verify `extern "C"` linkage works.
32///
33/// # Safety
34/// Exported with `#[no_mangle]` for C interop. Callers must ensure this is invoked
35/// according to the C calling convention.
36#[unsafe(no_mangle)]
37pub extern "C" fn rusty_extern_c_integer() -> i32 {
38    322
39}