rainmaker_components/
persistent_storage.rs1mod base;
2
3mod persistent_esp;
4mod persistent_linux;
5
6#[cfg(target_os = "espidf")]
7pub type Nvs = base::Nvs<esp_idf_svc::nvs::EspNvs<esp_idf_svc::nvs::NvsCustom>>;
8
9#[cfg(target_os = "linux")]
10pub type Nvs = base::Nvs<pickledb::PickleDb>;
11
12#[cfg(target_os = "espidf")]
13pub type NvsPartition = base::NvsPartition<esp_idf_svc::nvs::EspCustomNvsPartition>;
14
15#[cfg(target_os = "linux")]
16pub type NvsPartition = base::NvsPartition<std::path::PathBuf>;