peripherals/attributes/mod.rs
1//! Example of attribute in macros
2//!
3//! By default, attributes exand on generated types and fields, and not expand on generated impls.
4//! This shows how it can be changed.
5//!
6//! The macro invocations can be seen in the source code. This module exists only in documentation
7//! and tests
8
9// To check that everithing is explicit in the macro
10#![no_implicit_prelude]
11#![allow(missing_docs, non_upper_case_globals)]
12
13pub mod device;
14pub mod field_type;
15pub mod periph;
16pub mod register;