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
971 downloads per month
Used in 3 crates
(2 directly)
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