Skip to main content

neotron_ffi/
lib.rs

1//! FFI-safe types used in the various Neotron APIs.
2//!
3//! Note that all types in this file that are exported in the `Api` structure
4//! *must* be `#[repr(C)]` and ABI stable.
5
6#![cfg_attr(not(test), no_std)]
7
8// ============================================================================
9// Imports
10// ============================================================================
11
12mod buffer;
13mod option;
14mod result;
15mod slice;
16mod string;
17
18#[doc(inline)]
19pub use result::FfiResult;
20
21#[doc(inline)]
22pub use string::FfiString;
23
24#[doc(inline)]
25pub use option::FfiOption;
26
27#[doc(inline)]
28pub use buffer::FfiBuffer;
29
30#[doc(inline)]
31pub use slice::FfiByteSlice;
32
33// ============================================================================
34// Constants
35// ============================================================================
36
37// None
38
39// ============================================================================
40// Types
41// ============================================================================
42
43// None
44
45// ============================================================================
46// Functions
47// ============================================================================
48
49// None
50
51// ============================================================================
52// End of File
53// ============================================================================