1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cfg_if::cfg_if! {
    if #[cfg(feature = "myfs")] {
        pub mod myfs;
        /// The block size of the file system.
        pub const BLOCK_SIZE: usize = 512;
    } else if #[cfg(feature = "fatfs")] {
        pub mod fatfs;
        pub use fatfs::BLOCK_SIZE;
    } else if #[cfg(feature = "ext4fs")] {
        pub mod ext4fs;
        pub use ext4fs::BLOCK_SIZE;
    }
}

#[cfg(feature = "devfs")]
pub use axfs_devfs as devfs;

#[cfg(feature = "ramfs")]
pub use axfs_ramfs as ramfs;