Skip to content

docs claim Mutex is "Available on *crate feature* alloc only." but in fact it requires alloc *and* std (std implies alloc) #2985

@tamird

Description

@tamird

https://docs.rs/futures/latest/futures/lock/struct.Mutex.html

alloc required here:

#[cfg(feature = "alloc")]
pub mod lock;

std required here:
#[cfg(feature = "std")]
mod mutex;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions