Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requires once_cell 1.14 #1404

Closed
Hinton opened this issue Dec 21, 2022 · 0 comments
Closed

Requires once_cell 1.14 #1404

Hinton opened this issue Dec 21, 2022 · 0 comments
Assignees

Comments

@Hinton
Copy link

Hinton commented Dec 21, 2022

#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<_, _>`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants