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 (語言數: 2)
平台Linux, Mac
許可證Apache License 2.0
發布數77
最新版本名稱v0.33.1 (發布於 )
第一版名稱v0.1.0-rc1 (發布於 2016-10-14 22:58:53)
創建於2016-10-09 02:47:52
推送於2024-05-03 04:46:21
最后一次提交2024-04-21 03:46:00
星數656
關注者數26
派生數145
提交數1.4k
已啟用問題?
問題數270
打開的問題數47
拉請求數462
打開的拉請求數10
關閉的拉請求數89
已啟用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.

去到頂部