[][src]Derive Macro bevy_discovery::DiscoveryPlugin

#[derive(DiscoveryPlugin)]
{
    // Attributes available to this derive:
    #[root]
}

Annotating a struct with this will implement Plugin for it, registering all functions with the #[system] attribute accessible from the root file. By default, the root file is src/main.rs, but this can be overriden using #[root(path/to/root.rs)]