Hadris I/O
No-std I/O abstraction layer for the Hadris filesystem crates.
Overview
This crate provides Read, Write, and Seek traits that work in no-std environments, enabling filesystem implementations to run on bare-metal systems, bootloaders, and embedded devices.
Features
- No-std Compatible - Works without the standard library
- Familiar API - Trait signatures mirror
std::iowhere possible - Zero-copy - Uses bytemuck for efficient struct reading/writing
- Sector-based I/O -
SectorCursorwrapper for sector-aligned operations
Feature Flags
| Feature | Description | Default |
|---|---|---|
std |
Standard library support | Yes |
Usage
With std (default)
[]
= "0.2"
No-std
[]
= { = "0.2", = false }
Core Traits
SectorCursor
The SectorCursor wrapper provides sector-aligned I/O operations:
use SectorCursor;
let cursor = new; // 512-byte sectors, 4KB clusters
cursor.seek_sector?;
cursor.seek_cluster?;
License
Licensed under the MIT license.