Expand description
Proc macros for AURA plugins.
#[derive(Params)generates the fullaura_params::Paramsimpl for a struct ofFloatParam/IntParam/BoolParam/EnumParam<E>/MeterSlotfields, plus#[nested]sub-structs and#[persist]plain-data fields. It also emits a<Struct>ParamIdcompanion enum (one variant per own param field) so editors can useGainParamsParamId::Gain.id()instead of scattering rawu32IDs.#[derive(ParamEnum)generates theaura_params::ParamEnumimpl for a field-less enum.
AURA owns this derive. Param IDs are always explicit (id = N);
nested structs keep their declared IDs (collisions panic in new()
via Params::assert_no_id_collisions). There is no compile-time
plugin_info!, no framework #[derive(State)], and no silent
auto-numbering.
Packaging: generated code references ::aura::params::…. Depend on
the aura umbrella crate (normal author path), not aura-derive alone.
Implementation split across modules ([parse] collects fields /
attributes, [codegen] turns them into TokenStreams, [params] and
[param_enum] assemble the two derives) - the functions actually
tagged #[proc_macro_derive] stay here since that attribute is
only accepted on functions defined at the crate root.