# ferroui_static_view_locator_macros

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-static-view-locator-macros/

**module** · [`ferroui-static-view-locator-macros`](/docs/0.5.0/api/ferroui-static-view-locator-macros/) · v0.5.0

```rust
module ferroui_static_view_locator_macros
```

ferroui-static-view-locator-macros

The attributes of ferroui-static-view-locator: [`static_view_locator`](/docs/0.5.0/api/ferroui-static-view-locator-macros/proc_macro-static_view_locator/) (`[StaticViewLocator]`)
and [`static_view_mapping`](/docs/0.5.0/api/ferroui-static-view-locator-macros/proc_macro-static_view_mapping/) (`[StaticViewMapping]`). Use them through
`ferroui_static_view_locator`, which re-exports them.

The attributes do not generate the locator: a proc macro sees one item and cannot find the
view models and views of the crate. The build script of the crate does
(`ferroui-static-view-locator-build`), and writes one file per locator below `OUT_DIR`;
[`static_view_locator`](/docs/0.5.0/api/ferroui-static-view-locator-macros/proc_macro-static_view_locator/) checks its options, writes the struct, and includes that file, whose
`impl` blocks extend the struct (the `partial class` of the reference).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/StaticViewLocator/FerroUI.StaticViewLocator.Macros/lib.rs#L1)

## Contents

- [`static_view_locator`](/docs/0.5.0/api/ferroui-static-view-locator-macros/proc_macro-static_view_locator/) — proc macro
- [`static_view_mapping`](/docs/0.5.0/api/ferroui-static-view-locator-macros/proc_macro-static_view_mapping/) — proc macro

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
