rainmaker-components 0.1.0

Component abstractions for rainmaker
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod base;

mod persistent_esp;
mod persistent_linux;

#[cfg(target_os = "espidf")]
pub type Nvs = base::Nvs<esp_idf_svc::nvs::EspNvs<esp_idf_svc::nvs::NvsCustom>>;

#[cfg(target_os = "linux")]
pub type Nvs = base::Nvs<pickledb::PickleDb>;

#[cfg(target_os = "espidf")]
pub type NvsPartition = base::NvsPartition<esp_idf_svc::nvs::EspCustomNvsPartition>;

#[cfg(target_os = "linux")]
pub type NvsPartition = base::NvsPartition<std::path::PathBuf>;