Skip to content

Move CachePadded to separate sub-crate? #1066

@mgeier

Description

@mgeier

I have been using https://github.com/smol-rs/cache-padded/ as a dependency until it has been deprecated (smol-rs/cache-padded#11) and then, as suggested, I switched to crossbeam_utils::CachePadded.

I didn't really like that this forced an unneeded dependency (cfg-if, mentioned at smol-rs/cache-padded#10 (comment)) onto my crate.

I kinda accepted this, but recently, I found another inconvenience: it also forces me to bump the MSRV of my crate due to #1037, which is AFAICT unrelated to CachePadded.

Would it be possible to move CachePadded to a separate sub-crate to avoid those problems?

Alternatively, both problems might be avoidable by moving parts of crossbeam_utils to separate "features" (which I could deactivate for my crate), but I don't know if that's feasible?

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