Hadris Common
Shared types and utilities used by Hadris filesystem crates.
Overview
This crate provides common functionality needed across the Hadris workspace, including endian-aware types, CRC calculations, and string utilities.
Features
- Endian Types - Little-endian and big-endian wrappers for integers
- CRC Calculations - CRC32 and other checksum algorithms
- UTF-16 Strings - Utilities for working with UTF-16 encoded names
- No-std Compatible - Works without the standard library
Feature Flags
| Feature | Description | Default |
|---|---|---|
std |
Standard library support (includes CRC, chrono, rand) | Yes |
alloc |
Heap allocation without full std | - |
bytemuck |
Zero-copy serialization support | Yes |
Usage
Endian Types
use ;
// Create little-endian values
let value: = U32new;
assert_eq!;
For No-std Environments
[]
= { = "0.2", = false, = ["alloc"] }
Minimal (No Heap)
[]
= { = "0.2", = false }
License
Licensed under the MIT license.