Why you shouldn't obsess about Rust "features"

Rust makes it very easy to express conditional compilation, specially thanks to its “features”. They’re well integrated into the language and are very easy to use. But one thing I’ve learned by maintaining Rspotify (a library for the Spotify API) is that one shouldn’t obsess over them. Conditional compilation should be used when it’s the only way to solve the problem, for a number of reasons I’ll explain in this article....

July 6, 2021 · 7 min · Mario Ortiz Manero

Optional parameters in Rust

Optional or default parameters are a very interesting feature of some languages that Rust specifically doesn’t cover. This post showcases a few approaches that can serve as a replacement.

October 10, 2020 · 11 min · Mario Ortiz Manero