-
-
Notifications
You must be signed in to change notification settings - Fork 484
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
Forward std
feature to some deps.
#1321
Conversation
`nalgebra`'s `std` cargo feature now also enables the `std` feature of some dependencies that use `default-features = false`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Looks like the CUDA test in CI needs to be updated to support the optional dependency feature syntax. Want to have a look at that? |
It looks like I don't see a way to resolve this with both I guess |
nightly-2021-12-04 (used for cuda) is too old to support it.
Note that the cuda CI job will fail anyway as it has before due to version resolution https://github.com/dimforge/nalgebra/actions/runs/6839550246/job/18605831607 (probably related to rust-lang/cargo#10623?) |
Ah, yeah, looks like Rust-CUDA is de facto unmaintained :( I saw some mention of https://github.com/coreylowman/cudarc, maybe we should port to that? But that's out of scope here.
Sounds good to me. I'd prefer to drop CUDA support and hit all the deps, but that's @sebcrozet's call, and in the mean time this is a strict improvement. Alga users can enable std on that dep themselves if they need it. |
@Ralith Updating CUDA to the latest rustc/llvm version is a very difficult piece of work so it will probably not happen any time soon (if ever). So let’s just remove CUDA support. Users of cuda can pin the dependency of nalgebra that supported it. |
Fixes #623 (specifically about
Complex::from_polar
at least)nalgebra
'sstd
cargo feature now also enables thestd
feature of some dependencies that usedefault-features = false
(num-traits
,num-rational
,num-complex
,approx
, (if enabled)alga
)(Note: the
"alga?/std"
syntax for enabling features of optional dependencies without necessarily enabling the optional dependency itself was only stabilized in Rust 1.60, butnalgebra
seems to state that it's MSRV policy is "latest stable" so that would be fine.)