We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a344d2 commit 7067b5aCopy full SHA for 7067b5a
Cargo.toml
@@ -4,7 +4,7 @@ version = "0.1.0"
4
edition = "2021"
5
6
[features]
7
-default = ["glam"]
+default = []
8
glam = ["dep:glam"]
9
spirv-std = ["dep:spirv-std"]
10
src/lib.rs
@@ -7,12 +7,15 @@
#![no_std]
-#[cfg(not(feature = "spirv-std"))]
+#[cfg(feature = "glam")]
11
pub use glam;
12
13
#[cfg(feature = "spirv-std")]
14
pub use spirv_std::glam;
15
16
+#[cfg(all(not(feature = "glam"), not(feature = "spirv-std")))]
17
+compile_error!("Either the glam or spirv-std feature must be enabled.");
18
+
19
pub mod reflect;
20
pub mod saturate;
21
pub mod smooth_step;
0 commit comments