fynix_macros 0.0.2
Legitimate Rust proc-macro crate
“Attribute macros for fynix.”
AArch64 (ARM64) architecture stringComposite action step script body
SHA-25669d4364ce5fc0e5d433c33d845a4b942576265c59bb73fe2482a82c4dcc8bb52
MaleculeO(S)H(Cm)
Evidence
3:10… e](https://img.shields.io/badge/license-MIT%2FApache-blue.svg)](https://github.com/voxell-tech/fynix#license)
4[](https://crates.io/crates/fynix_macro …
8:142… ://discord.gg/Mhnyp6VYEQ)
9
10**Fynix Macros** has the attribute macros for
11[`fynix`](https://crates.io/crates/fynix).
12
13## `#[element]`
14
15Marks a struct of props as an element of one backend. Every field is
16a prop, and says how it is written:
17
18```rust,ignore
19#[element(backend = Bevy, theme = SpacingTokens)]
20pub s …
34:63… .
35
36On a field:
37
38- `patch = <type>`: the `Patch` that writes the prop. It becomes the
39 field's `lenz` tag.
40- `default = <expr>`: the value when unse …
43:19… Without it, the prop snaps.
44- `shown = <type>, with = <fn>`: writes a value made from the prop
45 and the theme, such as a colour from a tone.
46
47It w …
60:117… ](http://www.apache.org/licenses/LICENSE-2.0))
61
62This means you can select the license you prefer!
63This dual-licensing approach is the de-facto stand …
No evidence locations were recorded for this file. Raw result