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....

十二月 13, 2020 · 10 分钟 · 2007 字 · Ramsay Leung

rspotify has come to async/await

1 Preface Today, I am exited to introduce you the v0.9 release I have been continued to work on it for the past few weeks that adds async/await support now! 2 The road to async/await What is rspotify: > For those who has never heared about rspotify before, rspotify is a Spotify web Api wrapper implemented in Rust. With async/await’s forthcoming stabilization and reqwest adds async/await support now, I think it’s time to let rspotify leverage power from async/await....

二月 28, 2020 · 3 分钟 · 432 字 · Ramsay Leung

rspotify– 我的第一个Rust crate

开发第一个Rust crate 的感受和踩到的坑 最近写了人生第一个 Rust crate– rspotify. 虽说并不是什么惊天地,泣鬼神的大作,但是也是我花费了近两个月实现的。 现在就来聊聊...

二月 28, 2018 · 4 分钟 · 1760 字 · Ramsay Leung

Rust的错误处理(二)

自定义错误和error_chain 库 1 前言 上一篇文章聊到 Rust 的错误处理机制,以及和 Java 的简单比较,现在就来聊一下如何在 Rust 自定义错误,以及引入 er...

二月 8, 2018 · 4 分钟 · 1986 字 · Ramsay Leung

Rust的错误处理(一)

拉上Java 来谈谈 Rust的错误处理 1 前言 每个语言都会有异常处理机制(没有异常处理机制的语言估计也没有人会用了),Rust 自然也不例外,所以...

二月 5, 2018 · 6 分钟 · 2658 字 · Ramsay Leung