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#[cfg(all(feature = "gstreamer", onnx))]
32mod webcam_engine;
33
34/// C FFI demo stub — returns a fixed integer to verify `extern "C"` linkage works.
35///
36/// # Safety
37/// Exported with `#[no_mangle]` for C interop. Callers must ensure this is invoked
38/// according to the C calling convention.
39#[unsafe(no_mangle)]
40pub extern "C" fn rusty_extern_c_integer() -> i32 {
41    322
42}