#bevy #gamedev #macro #system #resources

bevy-butler

A crate for making Bevy systems more self-documenting

35 releases (5 breaking)

0.6.2 May 16, 2025
0.6.1-alpha.1 Mar 28, 2025
0.5.8-alpha.1 May 1, 2025

#409 in Game dev

Download history 698/week @ 2025-01-29 404/week @ 2025-02-05 149/week @ 2025-02-12 9/week @ 2025-02-19 32/week @ 2025-02-26 265/week @ 2025-03-19 133/week @ 2025-03-26 9/week @ 2025-04-02 1/week @ 2025-04-09 9/week @ 2025-04-16 644/week @ 2025-04-30 30/week @ 2025-05-07 321/week @ 2025-05-14

996 downloads per month
Used in immediate_stats

MIT/Apache

33KB
293 lines

bevy-butler

A set of procedural macros for making Bevy plugins and systems more self-documenting.

Crates.io License Crates.io Version docs.rs Crates.io MSRV

Version Compatibility

bevy bevy-butler
0.16 0.6
0.15 0.5

Example

use bevy::prelude::*;
use bevy_butler::*;

#[butler_plugin]
struct MyPlugin;

#[derive(Resource)]
#[insert_resource(plugin = MyPlugin, init = Hello("World".to_string()))]
struct Hello(String);

#[add_system(schedule = Update, plugin = MyPlugin)]
fn hello_plugin(name: Res<Hello>)
{
    info!("Hello, {}!", name.0);
}

#[add_system(schedule = Update, plugin = MyPlugin, after = hello_plugin)]
fn goodbye_plugin(name: Res<Hello>)
{
    info!("Goodbye, {}!", name.0);
}

fn main() {
    App::new()
        .add_plugins(MyPlugin)
        .run();
}

WebAssembly support

WebAssembly support is currently locked behind the wasm-experimental flag. See the relevant issue for more information.

Dependencies

~16–25MB
~371K SLoC