Skip to content

Make loom a dev-dependency #118

@stefnotch

Description

@stefnotch

Loom is currently only being used as a dependency for tests, as far as I can tell. However, it is included using [target.'cfg(loom)'.dependencies.loom].
This comes with a few issues, mainly

  • cargo vendor vendors dependencies of loom.
  • Dependencies of loom are included in Cargo.lock when using a crate that depends on loom.
  • cargo audit includes dependencies of loom when using a crate that depends on loom.

The workaround for these problems is to make loom an optional dependency: crossbeam-rs/crossbeam#666
from > > * cargo vendor vendors dependencies of loom.

  • Dependencies of loom are included in Cargo.lock when using a crate that depends on loom.
  • cargo audit includes dependencies of loom when using a crate that depends on loom.

The workaround for these problems is to make loom an optional dependency: crossbeam-rs/crossbeam#666

Could this be improved? Either by making loom an optional dependency, or by moving it to dev-dependencies. Currently this is an issue for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions