yerpc icon indicating copy to clipboard operation
yerpc copied to clipboard

Replace async-mutex with async-lock

Open jayvdb opened this issue 1 year ago • 3 comments

jayvdb avatar Sep 14 '24 05:09 jayvdb

Is there a reason to do this?

Frando avatar Sep 16 '24 08:09 Frando

async-mutex is deprecated for years - it was renamed to async-lock

jayvdb avatar Sep 16 '24 09:09 jayvdb

ping @Frando

jayvdb avatar Sep 28 '24 01:09 jayvdb

This seems to be the case, although I'm not sure

https://crates.io/crates/async-mutex and https://crates.io/crates/async-lock both point to the same repo.

WofWca avatar Mar 18 '25 12:03 WofWca

async-lock incorporated async-mutex at v1.1.5 https://github.com/smol-rs/async-lock/blob/cd0937d70a46f50cc64428660e249c8464e70088/CHANGELOG.md?plain=1#L94-L96

async-mutex was hosted at https://github.com/stjepang/async-mutex , and it looks like that repo was deleted around the time that async-lock 1.1.5 was released.

The docs of async-mutex v1.3.0 still showed the correct repo. c.f. https://docs.rs/async-mutex/1.3.0/async_mutex/ links to https://github.com/stjepang/async-mutex . The docs of async-mutex v1.4.0 is where the link was changed to point to the async-lock repo.

jayvdb avatar Mar 18 '25 22:03 jayvdb