| Crates.io | azalea-brigadier |
| lib.rs | azalea-brigadier |
| version | 0.15.0+mc1.21.11 |
| created_at | 2022-09-05 15:07:45.631155+00 |
| updated_at | 2025-12-19 03:31:08.462601+00 |
| description | A port of Mojang's Brigadier command parsing and dispatching library. |
| homepage | |
| repository | https://github.com/azalea-rs/azalea |
| max_upload_size | |
| id | 658897 |
| size | 191,335 |
azalea-brigadierA Rust port of Mojang's Brigadier command parsing and dispatching library.
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.