Skip to main content

Module disk

Module disk 

Source
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 (see crate::parse_job).
read_material
Reads and parses the filament/resin profile TOML file at path (see crate::parse_material).
read_printer
Reads and parses the printer profile TOML file at path (see crate::parse_printer).
read_slice_file
Reads the sliced file at path and parses it via formats::parse_slice_bytes — the file’s own name is passed as the detection hint.