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. To be honest, I was not familiar with async/await before, because of my Java background from where I just get used to multiple thread and sync stuff(Yes, I know Java has future either). ...

二月 28, 2020 · 1 分钟 · 471 字

RSpotify– 我的第一个Rust crate

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

二月 28, 2018 · 4 分钟 · 1874 字

Rust的错误处理(二)

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

二月 8, 2018 · 5 分钟 · 2216 字

Rust的错误处理(一)

拉上Java 来谈谈 Rust的错误处理 1 前言 每个语言都会有异常处理机制(没有异常处理机制的语言估计也没有人会用了),Rust 自然也不例外,所以今天我就来谈Rust 的异常处理,因为 Rust 的异常处理跟常见的语言 (Java/Python 等)的处理机制差异略大,所以打算拉个上个语言,对比着解释. 没错,这 个光荣的任务就落到了 Java 身上 ...

二月 5, 2018 · 6 分钟 · 2750 字