#svd #register #map #generator

no-std bin+lib svd2rust

Generate Rust register maps (structs) from SVD files

63 releases (32 breaking)

0.33.0 Mar 31, 2024
0.31.5 Jan 4, 2024
0.31.3 Dec 25, 2023
0.31.2 Nov 29, 2023
0.1.2 Nov 27, 2016

#74 in Embedded development

Download history 1631/week @ 2023-12-19 218/week @ 2023-12-26 516/week @ 2024-01-02 255/week @ 2024-01-09 275/week @ 2024-01-16 166/week @ 2024-01-23 110/week @ 2024-01-30 184/week @ 2024-02-06 349/week @ 2024-02-13 576/week @ 2024-02-20 700/week @ 2024-02-27 477/week @ 2024-03-05 461/week @ 2024-03-12 506/week @ 2024-03-19 899/week @ 2024-03-26 649/week @ 2024-04-02

2,577 downloads per month
Used in 3 crates

MIT/Apache

270KB
5.5K SLoC

GitHub top language Minimum Supported Rust Version crates.io crates.io Released API docs Crates.io dependency status Continuous integration

svd2rust

Generate Rust register maps (structs) from SVD files

This project is developed and maintained by the Tools team.

Documentation

Minimum Supported Rust Version (MSRV)

The generated code is guaranteed to compile on stable Rust 1.65.0 and up.

If you encounter compilation errors on any stable version newer than 1.65.0, please open an issue.

Testing Locally

svd2rust-regress is a helper program for regression testing changes against svd2rust. This tool can be used locally to check modifications of svd2rust locally before submitting a PR.

Check out the svd2rust-regress README for information on how to use this tool.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Code of Conduct

Contribution to this crate is organized under the terms of the Rust Code of Conduct, the maintainer of this crate, the Tools team, promises to intervene to uphold that code of conduct.

Dependencies

~3.5–5.5MB
~108K SLoC