Closed NobodyXu closed 2 months ago
I do not believe it is acceptable to vendor OnceLock. It is a bad idea for a low-maintenance crate to vendor code that may need a security update.
I do not believe it is acceptable to vendor OnceLock. It is a bad idea for a low-maintenance crate to vendor code that may need a security update.
Thanks for pointing out, under @the8472 's advice, I've replaced that with once_cell dependency and removed the vendoring of OnceLock.
First try
jobserver::Client::try_acquire
(available on jobserver 1.0.29), which will work:if not, we will simply fallback to help thread implementation, spawning one thread to maintain compatibility with other platforms.