This repository has been archived on 2022-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
ext2-rs/src/lib.rs

24 lines
462 B
Rust
Raw Normal View History

2018-03-18 09:25:05 -05:00
#![cfg_attr(not(test), no_std)]
2018-03-18 11:42:59 -05:00
#[macro_use]
extern crate bitflags;
pub mod superblock;
pub mod block_group;
pub mod inode;
2018-03-18 09:25:05 -05:00
#[cfg(test)]
2018-03-18 11:42:59 -05:00
mod tests {
use super::superblock::*;
use super::block_group::*;
use super::inode::*;
#[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);
}
}