udoprog / leaky-bucket

A token-based rate limiter based on the leaky bucket algorithm.
Apache License 2.0
93 stars 10 forks source link

Adopt pin-project-lite #25

Closed udoprog closed 6 months ago

udoprog commented 6 months ago

This adopts pin-project-lite as proposed in #18. I've now had some time to think about how things should and should not be pinned. A fair bit of unsafe still inevitably remains.