O'Reilly logo

Mastering Rust by Vesa Kaihlavirta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Rocket

The most promising web framework at the moment is called Rocket. It uses advanced Rust features in order to achieve a level of flexibility and agility found in more dynamic languages. We'll use Rocket to make a very simple RPG arena game using just basic HTML features.

Rocket currently requires nightly Rust since it uses several unstable features, such as compiler plugins, custom derives and attributes, and a few others we haven't talked about before. It will probably stay in the nightly territory for quite a while but is worth checking out, because it's wildly more ergonomic than the more stable frameworks.

Our game will have a global HashMap of Character structs, protected by the familiar Arc and Mutex combination to allow access ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required