Implement file-backed persistent storage

This allows running ctap2 authenticator application on non-embedded host OS
to implement virtual FIDO2 authenticator for QEMU
This commit is contained in:
Egor Duda
2022-05-31 21:46:02 +03:00
parent 12f6ed6e0b
commit db26f6125b
6 changed files with 206 additions and 1 deletions

View File

@@ -365,6 +365,8 @@ extern crate alloc;
mod buffer;
#[cfg(feature = "std")]
mod driver;
#[cfg(feature = "hostenv")]
mod file;
mod format;
pub mod fragment;
#[cfg(feature = "std")]
@@ -380,6 +382,8 @@ pub use self::buffer::{BufferCorruptFunction, BufferOptions, BufferStorage};
pub use self::driver::{
StoreDriver, StoreDriverOff, StoreDriverOn, StoreInterruption, StoreInvariant,
};
#[cfg(feature = "hostenv")]
pub use self::file::FileStorage;
#[cfg(feature = "std")]
pub use self::model::{StoreModel, StoreOperation};
pub use self::storage::{Storage, StorageError, StorageIndex, StorageResult};