mint-cli

Crates.iomint-cli
lib.rsmint-cli
version1.2.1
created_at2025-10-23 18:24:45.316952+00
updated_at2025-12-11 09:00:20.079876+00
descriptionA CLI tool for building hex files from excel data and a layout definition.
homepage
repositoryhttps://github.com/fordtom/mint
max_upload_size
id1897475
size807,865
Tom Ford (fordtom)

documentation

README

mint

Build flash blocks from a layout file (TOML/YAML/JSON) and a data source (Excel, Postgres, REST, or JSON), then emit hex files.

img

Install with cargo install mint-cli or via nix flakes.

Documentation

Quick Start

# 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

Layout Example

[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.

Commit count: 0

cargo fmt