The Wayback Machine - https://web.archive.org/web/20200819180555/https://github.com/rust-embedded/svd2rust
Skip to content
master
Go to file
Code

Latest commit

467: Allow unused FieldReader r=therealprof a=couchand

I'm developing code that's general across AVR chips.  I'd like to depend on the shared parts of Rahix/avr-device (see Rahix/avr-device#44).  When compiling without any specific device feature enabled, there are no users of the `FieldReader::new` method.  This PR skips the lint for this case.

This is somewhat related to #427 but not exactly.

Co-authored-by: Andrew Dona-Couch <hi@andrewcou.ch>
5b392b4

Git stats

Files

Permalink
Failed to load latest commit information.

README.md

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

Minimum Supported Rust Version (MSRV)

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

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.

You can’t perform that action at this time.