@@ -15,8 +15,9 @@ use proc_macro::TokenStream;
15
15
16
16
/// Attribute to declare the entry point of the program
17
17
///
18
- /// **NOTE** This macro must be invoked once and must be invoked from an accessible module, ideally
19
- /// from the root of the crate.
18
+ /// **IMPORTANT**: This attribute must be used once in the dependency graph and must be used on a
19
+ /// reachable item (i.e. there must be no private modules between the item and the root of the
20
+ /// crate). If the item is in the root of the crate you'll be fine.
20
21
///
21
22
/// The specified function will be called by the reset handler *after* RAM has been initialized. In
22
23
/// the case of the `thumbv7em-none-eabihf` target the FPU will also be enabled before the function
@@ -136,8 +137,9 @@ pub fn entry(args: TokenStream, input: TokenStream) -> TokenStream {
136
137
137
138
/// Attribute to declare an exception handler
138
139
///
139
- /// **NOTE** This macro must be invoked from an accessible module, ideally from the root of the
140
- /// crate.
140
+ /// **IMPORTANT**: This attribute must be used on reachable items (i.e. there must be no private
141
+ /// modules between the item and the root of the crate). If the item is in the root of the crate
142
+ /// you'll be fine.
141
143
///
142
144
/// # Syntax
143
145
///
@@ -429,6 +431,10 @@ pub fn exception(args: TokenStream, input: TokenStream) -> TokenStream {
429
431
430
432
/// Attribute to mark which function will be called at the beginning of the reset handler.
431
433
///
434
+ /// **IMPORTANT**: This attribute must be used once in the dependency graph and must be used on a
435
+ /// reachable item (i.e. there must be no private modules between the item and the root of the
436
+ /// crate). If the item is in the root of the crate you'll be fine.
437
+ ///
432
438
/// The function must have the signature of `unsafe fn()`.
433
439
///
434
440
/// The function passed will be called before static variables are initialized. Any access of static
0 commit comments