Skip to content

v1.5 doesn't compile anymore for wasm32 #52

Closed
@mockersf

Description

@mockersf

Similar to smol-rs/async-executor#72

with blocking v1.5:

error[E0599]: no method named `get_or_init_blocking` found for struct `async_lock::OnceCell` in the current scope
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/blocking-1.5.0/src/lib.rs:170:37
    |
170 |             let executor = EXECUTOR.get_or_init_blocking(|| {
    |                            ---------^^^^^^^^^^^^^^^^^^^^ help: there is a method with a similar name: `get_or_init`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `blocking` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
Error: Process completed with exit code 101.

forcing to use version 1.4.1 makes compilation work again

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions