A blazingly fast procedural macro in Rust for nesting types ergonomically! The bird of the shadows has found its nest, the Night Raven!
Please feel free to create a ticket for new features/bugs or create a pull request.
List of ideas I have at the moment for this project's expansion. Please create an issue for a new item to add to this list, using
todo
label.
- Derive macro for type features and manipulation
- Support structs/unions
- Support named variants and multiple fields in unnamed variants
nightraven/ <-- Main crate (public interface)
src/
examples/ <-- Houses examples using the trait and macro itself.
nightraven-macros/ <-- Internal macros crate. Will be pulled in by main crate.
src/
nightraven! {
enum TopLevel {
SubVariant(
enum SecondLevel {
SubVariant(
#[derive(Debug)]
enum ThirdLevel {
SomeVariant { field1: bool, field2: u32 },
TestI,
TestII,
}
),
TestA,
}
),
Test1,
Test2,
}
}