...

/

Installing and Using Legion

Installing and Using Legion

Learn how to install and use Legion.

Legion is included in Rust’s crates system, so installing it is similar to installing bracket-lib. Legion dependency is added in Cargo.toml as shown.

Terminal 1
Terminal
Loading...

Note that we’re using an exact version number for Legion with the equals (=) sign. Legion is rapidly improving, and this guarantees that our code will work with that published version.

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 ...