Skip to content

A blazingly fast procedural macro written in Rust for easisly nesting types ergonomically!

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

Shadorain/NightRaven

Repository files navigation

Night Raven

License TODOs

SummaryTodosDocs


Summary

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.

TODOs

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

Code Tree

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/

Example

nightraven! {
    enum TopLevel {
        SubVariant(
            enum SecondLevel {
                SubVariant(
                    #[derive(Debug)]
                    enum ThirdLevel {
                        SomeVariant { field1: bool, field2: u32 },
                        TestI,
                        TestII,
                    }
                ),
                TestA,
            }
        ),
        Test1,
        Test2,
    }
}

About

A blazingly fast procedural macro written in Rust for easisly nesting types ergonomically!

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages