Rust-GPU / Rust-CUDA

Ecosystem of libraries and tools for writing and executing fast GPU code fully in Rust.
Apache License 2.0
3.02k stars 115 forks source link

Fix: cust compilation errors with no-default-features #50

Closed kjetilkjeka closed 2 years ago

kjetilkjeka commented 2 years ago

Cust does currently not build with --no-default-features. This PR fixes it.

I removed #[cfg_attr(docsrs, doc(cfg(feature = "bytemuck")))] since this is not a public module and will not be documented by default. In addition it seems like the idea is to support implicit adding based on cfg in the future? Let me know if this was a mistake and I should re-add it.

Also, should cust be built with --no-default-features in CI? Or is it not worth the added compile time in CI?