20 releases (breaking)

Uses new Rust 2024

0.16.0+mc26.1 Mar 28, 2026
0.15.0+mc1.21.11 Dec 19, 2025
0.14.0+mc1.21.8 Sep 28, 2025
0.13.0+mc1.21.5 Jun 16, 2025
0.4.0 Nov 19, 2022

#6 in #azalea

Download history 131/week @ 2026-02-13 57/week @ 2026-02-20 173/week @ 2026-02-27 269/week @ 2026-03-06 235/week @ 2026-03-13 216/week @ 2026-03-20 215/week @ 2026-03-27 260/week @ 2026-04-03 522/week @ 2026-04-10 220/week @ 2026-04-17 146/week @ 2026-04-24 349/week @ 2026-05-01 158/week @ 2026-05-08 193/week @ 2026-05-15 177/week @ 2026-05-22 388/week @ 2026-05-29

971 downloads per month
Used in 3 crates (2 directly)

MIT license

125KB
3.5K SLoC

azalea-brigadier

A Rust port of Mojang's Brigadier command parsing and dispatching library.

Examples

use azalea_brigadier::prelude::*;
use std::sync::Arc;

#[derive(Debug, PartialEq)]
struct CommandSource {}

let mut subject = CommandDispatcher::new();
subject.register(literal("foo").executes(|_| 42));

assert_eq!(
    subject
        .execute("foo", Arc::new(CommandSource {}))
        .unwrap(),
    42
);

See the tests for more.

Dependencies

~0.3–2.1MB
~28K SLoC