rust-embedded/svd2rust

Generate Rust register maps (`struct`s) from SVD files

Rust

863

1,448 commits

updated Aug 23, 2026

See the code

README

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.85.0 and up.

If you encounter compilation errors on any stable version newer than 1.85.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.

arm
cmsis-svd
code-generator
cortex-m
microcontroller
rust

rust-embedded/svd2rust

Generate Rust register maps (`struct`s) from SVD files

Rust

863

1,448 commits

updated Aug 23, 2026

See the code

README

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.85.0 and up.

If you encounter compilation errors on any stable version newer than 1.85.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.

arm
cmsis-svd
code-generator
cortex-m
microcontroller
rust

Project health

Overall

4.2/10

Maintained

4/10

Code review

10/10
OpenSSF Scorecard

crates.io

Latest release

0.37.1 · Oct 19, 2025

Releases this year

1

Significant stargazers

Stephen Finucane

127 followers · starred Jan 2018

Keegan McAllister

272 followers · starred Apr 2017

Diego Barrios Romero

350 followers · starred Feb 2023

meh.

915 followers · starred Jan 2018