1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Raw FFI bindings to the HailoRT runtime library.
//!
//! These bindings mirror the C API declared in `<hailo/hailort.h>` from the
//! [hailo-ai/hailort](https://github.com/hailo-ai/hailort) open-source project.
//! They give Rust code direct access to the Hailo AI HAT+ on Raspberry Pi.
//!
//! # Safety
//! Every function in the [`ffi`] module is `unsafe`. Callers must uphold all
//! invariants described in the upstream C API documentation:
//! <https://hailo.ai/developer-zone/>
//!
//! # Linking
//! The `build.rs` script attempts `pkg-config` first, then falls back to
//! searching `/usr/lib` and `/usr/local/lib` for `libhailort.so`.
//!
//! # Module layout
//! | Module | Contents |
//! |--------|----------|
//! | [`constants`] | Sizing limits and default parameter values |
//! | [`handles`] | Opaque C handle types |
//! | [`status`] | `hailo_status` return code and all error constants |
//! | [`enums`] | All other C enum type aliases and their variants |
//! | [`types`] | Structs, unions, and callback type aliases |
//! | [`ffi`] | `unsafe extern "C"` function declarations |
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;