diff options
| author | mat <git@matdoes.dev> | 2023-12-05 11:24:01 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-12-05 11:24:01 -0600 |
| commit | 1369848c82a519cb554db8e4d6ff6d414ed741f8 (patch) | |
| tree | edc289aa7c42817a62c1aa218b53ec92500a298a | |
| parent | c5b15c029363a99f3446cb6943b86c1162f32ac2 (diff) | |
| download | azalea-drasl-1369848c82a519cb554db8e4d6ff6d414ed741f8.tar.xz | |
don't reference version number directly in docs
| -rwxr-xr-x | azalea/README.md | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/azalea/README.md b/azalea/README.md index 37b05084..99c7d741 100755 --- a/azalea/README.md +++ b/azalea/README.md @@ -7,10 +7,10 @@ See the [readme](https://github.com/azalea-rs/azalea) for a higher-level overvie First, install Rust nightly with `rustup install nightly` and `rustup default nightly`. -Then, add one of the following lines to your Cargo.toml: +Then, use one of the following commands to add Azalea to your project: -- Latest bleeding-edge version (recommended): `azalea = { git="https://github.com/azalea-rs/azalea" }`\ -- Latest "stable" release: `azalea = "0.8.0"` +- Latest bleeding-edge version (recommended): `cargo add azalea --git=https://github.com/azalea-rs/azalea`\ +- Latest "stable" release: `cargo add azalea` ## Optimization @@ -21,12 +21,14 @@ into it. You may have to install the LLD linker. For faster performance in debug mode, add the following code to your Cargo.toml: + ```toml [profile.dev] opt-level = 1 [profile.dev.package."*"] opt-level = 3 ``` + # 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/). @@ -35,7 +37,6 @@ Note that the `azalea` crate is technically just a wrapper over [`azalea_client` Because of this, some of the documentation will refer to `azalea_client`. You can just replace these with `azalea` in your code since everything from `azalea_client` is re-exported in azalea. - # Examples ```rust,no_run |
