svd2rust

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

Github stars Tracking Chart

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 团队,承诺会介入维护该行为准则。

Overview

Name With Ownerrust-embedded/svd2rust
Primary LanguageRust
Program languageRust (Language Count: 2)
PlatformLinux, Mac
License:Apache License 2.0
Release Count76
Last Release Namev0.33.0 (Posted on )
First Release Namev0.1.0-rc1 (Posted on 2016-10-14 22:58:53)
Created At2016-10-09 02:47:52
Pushed At2024-04-20 13:36:20
Last Commit At2024-04-17 06:47:44
Stargazers Count652
Watchers Count26
Fork Count144
Commits Count1.4k
Has Issues Enabled
Issues Count269
Issue Open Count47
Pull Requests Count461
Pull Requests Open Count10
Pull Requests Close Count89
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

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.

To the top