esp-hal/esp-hal-procmacros
Jesse Braham 1a2bee6f1f
Add derive macro for BuilderLite, add #[non_exhaustive] to some enums and structs (#2614)
* Add a derive procmacro to implement the Builder Lite pattern for a struct

* Add `#[non_exhaustive]` and derive `BuilderLite` where necessary in I2C module

* Add `#[non_exhaustive]` and derive `BuilderLite` where necessary in UART module

* Add `#[non_exhaustive]` and derive `BuilderLite` where necessary in SPI module

* Update `CHANGELOG.md`

* Fix build errors in HIL tests

* Fix generated doc comments

* Return a `ParseError` rather than panicking

* Add a method to set the value to `None` for `Option` types
2024-11-27 15:54:43 +00:00
..
src Add derive macro for BuilderLite, add #[non_exhaustive] to some enums and structs (#2614) 2024-11-27 15:54:43 +00:00
Cargo.toml Remove unnecessary features from esp-hal-procmacros, enable rtc-slow feature for Xtensa devices (#2594) 2024-11-25 15:18:14 +00:00
CHANGELOG.md Add derive macro for BuilderLite, add #[non_exhaustive] to some enums and structs (#2614) 2024-11-27 15:54:43 +00:00
README.md Update READMEs, housekeeping (#1339) 2024-03-22 17:11:20 +00:00

esp-hal-procmacros

Crates.io docs.rs MSRV Crates.io Matrix

Procedural macros for use with esp-hal and other related packages.

Documentation

Minimum Supported Rust Version (MSRV)

This crate is guaranteed to compile on stable Rust 1.76 and up. It might compile with older versions but that may change in any new patch release.

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.