svd2rust

从 SVD 文件中生成 Rust 寄存器映射(`struct's)。「Generate Rust register maps (`struct`s) from SVD files」

Github星跟踪图

svd2rust

从 SVD 文件生成 Rust 寄存器映射(结构)。

该项目由 Tools 团队 开发和维护。

文档

API

最低支持的 Rust 版本 (MSRV)

生成的代码保证能在稳定的 Rust 1.40.0 及以上版本上进行编译。

如果你在任何比 1.40.0 更早的稳定版本上遇到编译错误,请打开一个问题。

本地测试

svd2rust-regress 是一个针对 svd2rust 的回归测试的辅助程序。这个工具可以在本地使用,以便在提交PR之前检查对svd2rust的修改。

请查看 svd2rust-regress README,了解如何使用这个工具。

许可证

使用以下任何一种许可证:

由你选择。

贡献

除非您明确说明,任何由您有意提交以纳入作品的贡献,如 Apache-2.0 许可中所定义的,应按上述规定进行双重许可,而没有任何附加条款或条件。

行为准则

对本工具包的贡献是根据Rust行为准则的条款组织的,本工具包的维护者,即 Tools 团队,承诺会介入维护该行为准则。

主要指标

概览
名称与所有者rust-embedded/svd2rust
主编程语言Rust
编程语言Rust (语言数: 1)
平台Linux, Mac
许可证Apache License 2.0
所有者活动
创建于2016-10-09 02:47:52
推送于2025-04-04 17:26:14
最后一次提交2025-04-04 17:13:52
发布数85
最新版本名称v0.36.1 (发布于 )
第一版名称v0.1.0-rc1 (发布于 2016-10-14 22:58:53)
用户参与
星数770
关注者数26
派生数155
提交数1.5k
已启用问题?
问题数300
打开的问题数52
拉请求数517
打开的拉请求数13
关闭的拉请求数97
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?

crates.io
crates.io

svd2rust

Generate Rust register maps (structs) from SVD files

This project is developed and maintained by the Tools team.

Documentation

API

Requirements

The generated code is intended to compile on all stable versions of Rust greater or equal to 1.37.0, as well as the latest beta and the latest nightly.

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