Skip to content

Add standalone manufacturer decoder crate - #150

Merged
maebli merged 4 commits into
mainfrom
feat/manufacturer-decoder-framework
Sep 26, 2026
Merged

maebli merged 4 commits into
mainfrom
feat/manufacturer-decoder-framework

Conversation

@maebli

@maebli maebli commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

Adds a standalone no_std, allocation-free m-bus-manufacturer crate for maintainer-written vendor parsers. Each decoder is a plain Rust function plus a metadata table entry. Dispatch calls the first matching entry.

Checked readers return values with their byte ranges; small helpers turn them into named fields with scaling, units and labels. The synthetic example reads status, conditionally reads temperature, and reports hundredths of a degree Celsius. Errors preserve earlier fields and successful dispatch exposes leftover bytes.

No vendors or parser, CLI, output-format, or browser integrations are included yet.

Validation: all 11 crate/example tests pass, including automatic byte ranges and cursor rollback. Clippy with warnings denied, formatting, the embedded thumbv7em-none-eabi build, and Cargo package verification also pass.

@maebli maebli changed the title Add allocation-free manufacturer decoder framework Add standalone manufacturer decoder crate Sep 26, 2026
@maebli
maebli merged commit 4af4491 into main Sep 26, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant