June 2021
Beginner
344 pages
8h 9m
English
Legion is included in Rust’s crates system, so installing it is very similar to installing bracket-lib. Open Cargo.toml in your dungeoncrawl project, and add Legion to the dependency list:
| | [dependencies] |
| | bracket-lib = "~0.8.1" |
| | legion = "=0.3.1" |
Note that you’re using an exact version number for Legion with the equals (=) sign. Legion is rapidly improving, which guarantees that your code will work with that published version.
Pin Your Dependencies | |
|---|---|
|
|
When you’re working on a project, it’s a good idea to pin your dependencies with the equals (=) sign once you progress beyond initial planning. This guarantees that ... |
Read now
Unlock full access