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
30
31
32
33
34
35
36
37
38
39
40
41
//! Chunked, `#![no_std]` virtual file system on [Embassy `ekv`](https://github.com/embassy-rs/ekv).
//!
//! Large files are split into fixed-size chunks in the key-value store so you can
//! stream reads with bounded RAM. Paths are opaque strings (e.g. `/photos/cat.jpg`);
//! there is no directory listing API.
//!
//! # Example
//!
//! ```ignore
//! use ekv::{Config, Database};
//! use ekv_fs::EkvFs;
//!
//! // After formatting flash and opening your `Database`:
//! let fs = EkvFs::<_, _, 64, 512>::new(&db);
//! fs.write_file("/hello.txt", b"Hello").await?;
//! let meta = fs.stat("/hello.txt").await?;
//! let mut file = fs.open("/hello.txt").await?;
//! let mut buf = [0u8; 32];
//! let n = file.read(&mut buf).await?;
//! ```
extern crate alloc;
pub use Error;
pub use EkvFile;
pub use EkvFs;
pub use ;
pub use FileMeta;