Closed fogti closed 3 years ago
probably stems from this file: https://github.com/crossbeam-rs/crossbeam/blob/d841a2028dc72b4e09739116f07e865db60f3690/crossbeam-utils/Cargo.toml
# Enable the use of loom for concurrency testing.
#
# This configuration option is outside of the normal semver guarantees: minor
# versions of crossbeam may make breaking changes to it at any time.
[target.'cfg(crossbeam_loom)'.dependencies]
loom = { version = "0.4", optional = true }
In crate2nix/templates/nix/crate2nix/default.nix
, defaultTarget
should contain crossbeam_loom = false;
.
But this is not a long-term solution. crate2nix
should find all used feature
tags used in target.cfg(XXX)
form in Cargo.toml
files, and use e.g. builtins.elem "crossbeam_loom" features
instead of target."crossbeam_loom"
.
oh no, this is not completely correct... there should be a separate category besides features, targetFeatures, target
, e.g. rawFeature
, which contains such flags and is merged with target
early...
uhh, and this seems to be already fixed, now, as I read the source code, but the fix is not present in the published 0.8.0
version... :-(
relates to the following stmt from the
README.md
:trace: https://gist.github.com/zseri/44eb7052e9634e2761e459272eab05c4