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`
|
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_polarat least)nalgebra'sstdcargo feature now also enables thestdfeature 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, butnalgebraseems to state that it's MSRV policy is "latest stable" so that would be fine.)