vortex-fs 0.1.0

Virtual file system with fault injection for Vortex simulation
Documentation
  • Coverage
  • 86.11%
    31 out of 36 items documented2 out of 2 items with examples
  • Size
  • Source code size: 34.81 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.32 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 27s Average build duration of successful builds.
  • all releases: 27s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • sansavision

vortex-fs — Virtual file system with deterministic fault injection.

Provides a [VortexFs] trait that mirrors std::fs operations. Two implementations are included:

  • [RealFs] — production pass-through to std::fs (zero overhead).
  • [SimFs] — in-memory filesystem with configurable fault injection.

Example

use vortex_fs::{SimFs, VortexFs};

let mut fs = SimFs::new(42);
fs.write_file("/data/hello.txt", b"world").unwrap();
let data = fs.read_file("/data/hello.txt").unwrap();
assert_eq!(data, b"world");