#minecraft-bot #brigadier #azalea

azalea-brigadier

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

15 releases (breaking)

Uses new Rust 2024

new 0.12.0+mc1.21.5 Apr 13, 2025
0.11.0+mc1.21.4 Dec 21, 2024
0.10.3+mc1.21.1 Oct 23, 2024
0.10.2 Jun 14, 2024
0.4.0 Nov 19, 2022

#8 in #azalea

Download history 158/week @ 2024-12-18 11/week @ 2024-12-25 5/week @ 2025-01-01 42/week @ 2025-01-08 8/week @ 2025-01-15 3/week @ 2025-01-22 3/week @ 2025-01-29 28/week @ 2025-02-05 10/week @ 2025-02-12 45/week @ 2025-02-19 40/week @ 2025-02-26 14/week @ 2025-03-05 36/week @ 2025-03-12 15/week @ 2025-03-26 22/week @ 2025-04-02

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

MIT license

115KB
3K 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.4–5.5MB
~21K SLoC