Re:How I Start: Rust
by CoffeeDregs on Tuesday March 17, 2020 @04:53PM
(#22610297)
Love seeing more Rust. It's good stuff.
I thought "extern crate XYZ" was old-style? "use XYZ"?
[ Parent
| on HN ]
It's still fairly common to use in conjunction with
#[macro_use]
for when you want to easily import all of the macros from a crate across your entire project. But yes, you could do use rocket::{get, routes};
instead.