hadris_core/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2
3#[cfg(feature = "alloc")]
4extern crate alloc;
5
6pub type UtcTime = chrono::DateTime<chrono::Utc>;
7
8pub mod internal;
9pub mod str;
10pub mod file;
11use file::FileAttributes;
12pub use file::{File, OpenOptions};
13
14pub trait FileSystem {
15    fn create(&mut self, path: &str, attributes: FileAttributes) -> Result<File, ()>;
16    fn open(&mut self, path: &str, options: OpenOptions) -> Result<File, ()>;
17}
18