
We created a proc macro that derives the settings ui trait on types and added that trait as a marker on Settings trait. Then we added the derive macro on all settings Co-authored-by: Ben Kunkle <ben@zed.dev>
21 lines
335 B
TOML
21 lines
335 B
TOML
[package]
|
|
name = "settings_ui_macros"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
publish.workspace = true
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lib]
|
|
path = "src/settings_ui_macros.rs"
|
|
proc-macro = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
default = []
|
|
|
|
[dependencies]
|
|
proc-macro2.workspace = true
|
|
quote.workspace = true
|
|
syn.workspace = true
|