1
0
Fork 0
forked from AbleOS/ableos
ableos-idl/ext2-rs/src/lib.rs

37 lines
740 B
Rust
Raw Normal View History

2022-07-27 19:51:13 -05:00
//! Ext2 crate for ableOS
#![deny(missing_docs)]
2022-08-03 02:11:51 -05:00
#![feature(min_specialization, step_trait, associated_type_defaults)]
2022-07-27 19:51:13 -05:00
#![cfg_attr(all(not(test), feature = "no_std"), no_std)]
extern crate alloc;
#[macro_use]
extern crate bitflags;
extern crate genfs;
extern crate spin;
#[cfg(any(test, not(feature = "no_std")))]
extern crate core;
pub mod error;
pub mod fs;
pub mod sector;
pub mod sys;
pub mod volume;
#[cfg(test)]
mod tests {
use sys::block_group::*;
use sys::inode::*;
use sys::superblock::*;
#[test]
fn sizes() {
use std::mem::size_of;
assert_eq!(size_of::<Superblock>(), 1024);
assert_eq!(size_of::<BlockGroupDescriptor>(), 32);
assert_eq!(size_of::<Inode>(), 128);
}
}