Expand description
bootsmith-core: the typed pipeline that turns an ISO + a target device into a sequence of write operations.
This crate is intentionally OS-agnostic. Concrete device I/O lives in
bootsmith-disk; ISO inspection in bootsmith-iso; boot-record bytes in
bootsmith-boot. The orchestration here calls into those via traits so the
pipeline can run against an in-memory Vec<u8> for unit tests just as
easily as against /dev/rdisk8.
Re-exports§
Modules§
- device
- The
Devicetrait: the only abstraction every other crate is allowed to use when it needs to write to “a thing.” The macOS raw-block-device impl lives inbootsmith-disk; in tests we substitute an in-memoryVec<u8>impl socargo testworks without root, without a USB stick, and without macOS. - plan
WritePlanis the typed, fully-resolved description of “what we are going to do to this device.” Building a plan is deterministic and pure; executing it is the only step that needs a realDevice.
Structs§
- Config
- Top-level config built from CLI args.
- Unattended
Config
Enums§
- Boot
Record Impl - Backend used to write MBR boot code and the partition boot record.
- Error
- Mode
Request - What the user asked for at the CLI.
Autotriggers ISO inspection to pick the actualBootMode.