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
#![doc = include_str!("../README.md")]
#![forbid(future_incompatible)]
#![deny(bad_style, missing_docs)]
#![no_std]

mod entry;
mod result;
mod table;
mod types;
mod utils;

#[cfg(feature = "embedded-storage")]
mod estor;

#[cfg(feature = "embedded-storage")]
mod norfl;

use utils::SliceExt;

pub use entry::{Md5Data, PartitionBuffer, PartitionEntry, PartitionMd5};
pub use result::PartitionError;
pub use table::{PartitionReaderState, PartitionTable, PartitionWriterState};
pub use types::{AppPartitionType, DataPartitionType, PartitionType};

#[cfg(feature = "embedded-storage")]
pub use estor::{PartitionStorageIter, StorageOpError};

#[cfg(feature = "embedded-storage")]
pub use norfl::{NorFlashOpError, PartitionNorFlashIter};