Skip to main content

fs_core/
lib.rs

1//! Pure-Rust block-device framework. The shared substrate every filesystem
2//! driver and disk-image reader plugs into.
3//!
4//! See the crate-level
5//! [`README`](https://github.com/antimatter-studios/rust-fs-core) for the
6//! intended consumers and design.
7
8#![deny(unsafe_op_in_unsafe_fn)]
9
10/// One in-memory device for this crate's own tests.
11#[cfg(test)]
12pub(crate) mod test_device;
13
14pub mod block;
15pub mod caching_device;
16pub mod callback_device;
17pub mod error;
18pub mod ffi;
19pub mod file_device;
20pub mod readonly;
21pub mod slice;
22pub mod stream;
23
24pub use block::{BlockDevice, BlockRead};
25pub use caching_device::CachingDevice;
26pub use callback_device::{CallbackDevice, FlushCb, ReadCb, WriteCb};
27pub use error::{Error, Result};
28pub use file_device::FileDevice;
29pub use readonly::ReadOnlyDevice;
30pub use slice::{OwnedRwSlice, OwnedSlice, SliceReader};
31pub use stream::BlockReadStreamer;