Expand description
Thin read-only disk helpers: load a sliced file, job, or profile from a
path. This is the only part of libprintcalc that touches the
filesystem — reading only; saving files, the profile library, and config
persistence stay in the CLI (cli feature). The in-memory counterparts
(crate::parse_slice_bytes, crate::parse_job) remain the right
choice for callers without a filesystem (printcalc-wasm).
Functions§
- read_
job - Reads and parses the job TOML file at
path(seecrate::parse_job). - read_
material - Reads and parses the filament/resin profile TOML file at
path(seecrate::parse_material). - read_
printer - Reads and parses the printer profile TOML file at
path(seecrate::parse_printer). - read_
slice_ file - Reads the sliced file at
pathand parses it viaformats::parse_slice_bytes— the file’s own name is passed as the detection hint.