mboot/
lib.rs

1// Copyright 2025 NXP
2//
3// SPDX-License-Identifier: BSD-3-Clause
4pub use mboot::{
5    GetPropertyResponse, KeyProvisioningResponse, McuBoot, ReadMemoryResponse, memory, packets,
6    protocols::{self, CommunicationError},
7    tags,
8};
9
10#[cfg(feature = "python")]
11mod bindings;
12
13#[cfg(feature = "python")]
14use pyo3_stub_gen::define_stub_info_gatherer;
15#[cfg(feature = "python")]
16define_stub_info_gatherer!(stub_info);
17
18mod mboot;
19mod parsers;
20
21// Only include the c_api module when the c_api feature is enabled
22#[cfg(feature = "c_api")]
23mod c_api;
24
25// Re-export the C API only if the c_api feature is enabled
26#[cfg(feature = "c_api")]
27pub use c_api::*;