Skip to main content

Crate tokmd_io_port

Crate tokmd_io_port 

Source
Expand description

§tokmd-io-port

Tier 0 (Contract)

I/O port traits for host-abstracted file access. Enables WASM targets by replacing real fs with in-memory backends.

§What belongs here

  • The ReadFs trait and its implementations
  • HostFs – delegates to std::fs
  • MemFs – in-memory store for tests and WASM

§What does NOT belong here

  • Directory traversal / walking (use tokmd-walk)
  • Content scanning (use tokmd-scan)

Structs§

HostFs
Default host filesystem implementation.
MemFs
In-memory filesystem for testing and WASM.
MemFsError
Error type returned by MemFs operations.

Traits§

ReadFs
Read-only filesystem port.