# Crate Features | Cargo feature | Description | | --- | --- | | `proc_macro` | Crate feature `proc_macro` (enables the `#[section]` attribute shim). | # Macro Attributes
AttributeDescription
aux(main = path::to::MAIN_SECTION) Auxiliary sections are stored in a section near the main section. The aux path must be a valid reference to the main section.
crate_path = ::path::to::link_section The path to the `link-section` crate containing the support macros. If you re-export `link-section` items as part of your crate, you can use this to redirect the macro's output to the correct crate. Using the declarative [`section!`][s] form is preferred over this parameter. [s]: crate::declarative::section!
name = my_crate::SECTION_NAME Specify a custom section name to allow the section to be used without a direct reference. If not specified, the section name will be generated using the item name and a path to the section. It is valid to specify multiple sections with the same name, and the linker will ensure that both sections contain the same items. The multiple sections must contain the same type, otherwise the section will `panic!` at runtime. While `name` accepts a path, this path does not refer to a specific Rust item path.
untyped | typed | mutable | movable | reference The type of the section.
unsafe Allow the section to be used without a direct reference.
# Defaults