Working on Rust crate "gmaps-static" (Google Static Maps API URL builder) - Twitch live 2021-06-27
In this video, I work with Tommaso Allevo (https://twitter.com/AlleviTommaso) on a Rust crate that helps you to generate URLs for Google Maps Static API (https://developers.google.com/maps/documentation/maps-static/overview)
The crate is called gmaps-static and you can find it on GitHub: https://github.com/lmammino/gmaps-static
In this live stream, we explained what the crate does, and then we did some interesting refactoring using trait objects (https://doc.rust-lang.org/reference/types/trait-object.html), type erasure (https://internals.rust-lang.org/t/traits-and-type-erasure-trait-objects/11263), and dynamic dispatch (https://doc.rust-lang.org/1.8.0/book/trait-objects.html) to reduce code duplication in the code responsible for assembling all the query string parameters of the URL.
If you want to follow along with the next live stream, check out my Twitch channel at https://twitch.tv/loige