oxide-generation-macros
Procedural macro for oxide-generation.
This crate provides a procedural macro to help with creating
oxide-generation instances.
For more information, see the documentation for impl_typed_generation_kinds!.
Examples
Basic usage:
use TypedGenerationKind;
use impl_typed_generation_kinds;
impl_typed_generation_kinds!
// This generates empty UserGenerationKind and BusinessUnitGenerationKind
// enums implementing TypedGenerationKind, with the tags "user" and
// "business_unit" respectively. Tags are snake_case versions of type names.
assert_eq!;
assert_eq!;
// The macro also generates UserGeneration and BusinessUnitGeneration type aliases.
let user_generation = new;
let business_unit_generation = new;
For more details and examples, see the documentation for
impl_typed_generation_kinds!.
License
This project is available under the terms of either the Apache 2.0 license or the MIT license.