You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#1395 started using Lazy:.get_mut which requires version 1.14 or newer of once_cell. The requirement in napi/cargo.toml has a loose requirement on version 1. This caused a compilation error on my environment when upgrading napi.
I believe the solution would be to change the dependency version to ^1.14which should ensure it gets compiled with a compatible version of the dependency.
Full error I get when compiling with an older version of once_cell:
--> .cargo\registry\src\github.com-1ecc6299db9ec823\napi-2.10.3\src\tokio_runtime.rs:23:29
|
23 | if let Some(rt) = Lazy::get_mut(unsafe { &mut RT }) {
| ^^^^^^^ function or associated item not found in `once_cell::sync::Lazy<_, _>`
The text was updated successfully, but these errors were encountered:
#1395 started using
Lazy:.get_mut
which requires version 1.14 or newer ofonce_cell
. The requirement innapi/cargo.toml
has a loose requirement on version 1. This caused a compilation error on my environment when upgrading napi.I believe the solution would be to change the dependency version to
^1.14
which should ensure it gets compiled with a compatible version of the dependency.Full error I get when compiling with an older version of
once_cell
:The text was updated successfully, but these errors were encountered: