Skip to content
Rust Search
← Browse conferences

Messing around with fn main() and getting away with it

Rust Programming Language
RustConf 24:00 5758 views

RustConf 2019 - Messing Around with FN Main() and Getting Away with it by Yoshua Wuyts The introduction of return types in main has made writing binaries a lot nicer. But why stop there? What if we could make main an async fn to support top-level await? Or perhaps allow main to take command line arguments as parameters? In this talk I’ll show how to make fn main perform party tricks, make boilerplate disappear, and saw code size in half. And by the end of the show you’ll have a good picture to

Player unavailable or embedding blocked? Use the YouTube link above.