| Crates.io | mint-cli |
| lib.rs | mint-cli |
| version | 1.2.1 |
| created_at | 2025-10-23 18:24:45.316952+00 |
| updated_at | 2025-12-11 09:00:20.079876+00 |
| description | A CLI tool for building hex files from excel data and a layout definition. |
| homepage | |
| repository | https://github.com/fordtom/mint |
| max_upload_size | |
| id | 1897475 |
| size | 807,865 |
Build flash blocks from a layout file (TOML/YAML/JSON) and a data source (Excel, Postgres, REST, or JSON), then emit hex files.

Install with cargo install mint-cli or via nix flakes.
# Excel data source
mint layout.toml --xlsx data.xlsx -v Default
# Postgres data source
mint layout.toml --postgres config.json -v Debug/Default
# REST data source
mint layout.toml --rest config.json -v Debug/Default
# JSON data source
mint layout.toml --json data.json -v Debug/Default
# Multiple blocks with options
mint config@layout.toml calibration@layout.toml --xlsx data.xlsx -v Production/Default --stats
[block.data]
device.info.version.major = { name = "FWVersionMajor", type = "u16" }
device.info.name = { name = "DeviceName", type = "u8", size = 16 }
calibration.coefficients = { name = "Coefficients1D", type = "f32", size = 8 }
calibration.matrix = { name = "CalibrationMatrix", type = "i16", size = [3, 3] }
message = { value = "Hello", type = "u8", size = 16 }
See doc/examples/block.toml for full examples.