Skip to main content

oxidant/
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#[cfg(feature = "onnxruntime")]
24pub use kataglyphis_inference::ort_runtime;
25
26#[cfg(feature = "burn_demos")]
27pub mod burn_demos;
28
29mod frb_generated;
30#[cfg(onnx)]
31pub use kataglyphis_inference::person_detection;
32
33#[cfg(all(feature = "gstreamer", onnx))]
34mod webcam_engine;
35
36/// C FFI demo stub — returns a fixed integer to verify `extern "C"` linkage works.
37#[unsafe(no_mangle)]
38pub extern "C" fn rusty_extern_c_integer() -> i32 {
39    322
40}