embassy-rs / embassy-rs/chiptool

Add support for toml?

Open
#96 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
65
Forks
54
PR merge metrics
No merged PRs in 30d

Description

I intend to use chiptool to generate a generic usb OHCI register block, but I noticed that multi-line descriptions are turned into a single line.

I tracked the problem to serve_yaml, which doesn't preserve multiple lines, and couldn't find a alternate yaml parser that supports serde.
After implementing toml support in the `gen-block` command I also had to fix `utils::respace`, which was eating newlines.
Now I have a way to generate multi-line comments. 👍

Are you guys interested in supporting toml in the various commands?
I can make a PR, it would be trivial to add other serde formats (like json) after that.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.