async-openai icon indicating copy to clipboard operation
async-openai copied to clipboard

Use actively maintained `backon` to replace `backoff`

Open Xuanwo opened this issue 1 year ago • 2 comments

Hi, thanks for building async-openai. I'm starting this issue to discuss whether it's a good idea to replace backoff with the actively maintained backon. I noticed that this crate exposes backoff at the public API level. Therefore, I want to discuss it first before beginning any work.


BackON has now reached version 1.0 and has only one dependency. It can be used in both WebAssembly and no_std environments.

I'm willing to help perform the migration if you think it's cool.

Xuanwo avatar Sep 02 '24 09:09 Xuanwo

Hey, thank you for the offer to add support for backon, looks really nice project.

At the moment backoff gets the job done. However, it would be worth revisiting this in the future for WebAssembly and no_std environments. We can have this issue parked for now.

64bit avatar Sep 04 '24 02:09 64bit

Just wanted to bump this issue now that there is an official advisory regarding backoff being unmaintained https://rustsec.org/advisories/RUSTSEC-2025-0012.

mccormickt avatar Apr 17 '25 16:04 mccormickt

Second the bump. Cargo Deny throws errors due to the use of backoff.

spencerbart avatar May 29 '25 16:05 spencerbart

I no longer have interest in this issue, closing.

Xuanwo avatar Sep 15 '25 07:09 Xuanwo