Serde Tricks

The lesson learned from refactoring rspotify 1 Preface Recently, I and Mario are working on refactoring rspotify, trying to improve performance, documentation, error-handling, data model and reduce compile time, to make it easier to use. (For those who has never heard about rspotify, it is a Spotify HTTP SDK implemented in Rust). I am partly focusing on polishing the data model, based on the issue created by Koxiaet. Since rspotify is API client for Spotify, it has to handle the request and response from Spotify HTTP API....

December 13, 2020 · 11 min · 2305 words · Ramsay Leung