boinkor-net / governor

A rate-limiting library for Rust (f.k.a. ratelimit_meter)

Home Page:https://github.com/boinkor-net/governor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support WASM

azriel91 opened this issue · comments

Heya, I'm interested in adding WASM support to governor, especially because I've tried using both this and async-std's stream::interval for rate limiting, and governor's performance is much better.

First bit is to use instant::Instant in place of std::time::Instant.

I'll have a go and post back when I've gotten far.