diff options
| author | mat <git@matdoes.dev> | 2026-03-18 16:28:46 -1030 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-03-20 04:21:58 -0200 |
| commit | 25cd1c0b60604655b70d70f8ec33a54853905eea (patch) | |
| tree | 28911045f6d69b2fffcb8d9c5a92fe32657b5e4b /azalea/README.md | |
| parent | b03d2942e1bef98e13acadde5cbb8856a3f8c74d (diff) | |
| download | azalea-drasl-25cd1c0b60604655b70d70f8ec33a54853905eea.tar.xz | |
optimize pathfinder swarms and write perf guide
Diffstat (limited to 'azalea/README.md')
| -rw-r--r-- | azalea/README.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/azalea/README.md b/azalea/README.md index eb066839..158a9b31 100644 --- a/azalea/README.md +++ b/azalea/README.md @@ -34,7 +34,7 @@ pub struct State { pub messages_received: Arc<Mutex<usize>> } -async fn handle(bot: Client, event: Event, state: State) -> anyhow::Result<()> { +async fn handle(bot: Client, event: Event, state: State) -> eyre::Result<()> { match event { Event::Chat(m) => { let mut messages_received = state.messages_received.lock(); @@ -67,8 +67,7 @@ For faster compile times, create a `.cargo/config.toml` file in your project and [this file](https://github.com/azalea-rs/azalea/blob/main/.cargo/config_fast_builds.toml) into it. You may have to install the LLD linker. -For faster performance in debug mode, add the following code to your -Cargo.toml: +For faster performance in debug mode, add the following code to your `Cargo.toml`: ```toml [profile.dev] @@ -77,6 +76,8 @@ opt-level = 1 opt-level = 3 ``` +For a lot more details on how to make Azalea faster, see the [Azalea performance guide](_docs::performance). + # Documentation The documentation for the latest Azalea crates.io release is available at [docs.rs/azalea](https://docs.rs/azalea/latest/azalea/) and the docs for the latest bleeding-edge (git) version are at [azalea.matdoes.dev](https://azalea.matdoes.dev/azalea/). |
