ntfs-mac-core 0.1.6

Core library for ntfs-mac: subprocess wrappers around ntfs-3g, diskutil, hdiutil, mkntfs, ntfsfix.
Documentation

ntfs-mac core.

Subprocess wrappers around ntfs-3g, diskutil, hdiutil, newfs_ntfs, ntfsfix and fsck_ntfs, plus a small config layer.

Design rules (do not violate — they are the reason this library is kept under ~1.5k LOC):

  • No unsafe, no unwrap on production paths, no async runtime.
  • Every external command goes through [runner::run]; failures are surfaced as [error::Error] with the underlying stderr attached.
  • Pure parsing helpers are pure and unit-testable; only the module boundaries that touch std::process::Command are impure.
  • Destructive NTFS operations require an explicit [DestructiveToken] to be matched before the API proceeds.

Layout:

ntfs-mac-core
  runner   Subprocess plumbing + timeouts
  error    Typed errors, ExitStatus codes
  config   ~/.config/ntfs-mac/config.toml
  deps     Dependency discovery (ntfs-3g, macFUSE, FUSE-T, ...)
  device   diskutil list -plist parsing
  mount    ntfs-3g / diskutil mount and unmount
  format   mkntfs / newfs_ntfs (destructive, gated)
  fix      ntfsfix / fsck_ntfs
  copy     rsync-based copy with progress
  license  Licence metadata + embedded attribution inventory