-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't build crate with dependency num 0.4.0 #182
Comments
Dupe of #146 |
pandaman64
added a commit
to pandaman64/crate2nix
that referenced
this issue
Apr 22, 2021
When Cargo sees a dependency feature `opt_crate/feat` for an optional dependency `opt_crate`, it implicitly adds `opt_crate` to the feature set for the current crate. For example, `num-rational` crate relies on this behavior for importing `num-bigint`, which is optional. This patch lets crate2nix mimic this behavior. Closes nix-community#146 and nix-community#182.
kolloch
pushed a commit
that referenced
this issue
Apr 24, 2021
When Cargo sees a dependency feature `opt_crate/feat` for an optional dependency `opt_crate`, it implicitly adds `opt_crate` to the feature set for the current crate. For example, `num-rational` crate relies on this behavior for importing `num-bigint`, which is optional. This patch lets crate2nix mimic this behavior. Closes #146 and #182.
Hey @1000teslas, thank you so much for reporting this! @pandaman64 has fixed this in a recent PR. Would you help by retesting it with the master version? Thank you. |
seems like it works fine. thanks. |
Awesome, thanks for getting back to us! |
I had the same problem and master also fixed it. Thanks for the quick fix! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get this error
when trying to
nix-build
the generatedCargo.nix
. Howevercargo build
works fine.The text was updated successfully, but these errors were encountered: