nix-community / crate2nix

rebuild only changed crates in CI with crate2nix and nix
https://nix-community.github.io/crate2nix/
Apache License 2.0
354 stars 83 forks source link

Don't hard-code a target family of Unix #255

Closed Ericson2314 closed 1 year ago

Ericson2314 commented 2 years ago

Rust target specs actually support multiple target families, where just one needs to match, so we do too.

Reverse the order of the comparison so it is more consistent: wanted before the target's single value or list.

Ericson2314 commented 2 years ago

The new logic should be backported into a toTargetFamilies next to the others in the "rust lib". Then this is ready to be merged.

Ericson2314 commented 1 year ago

(The tests passed locally)