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