Skip to content

Commit 7067b5a

Browse files
committed
Default to no glam provider, add compile error re. enabling one
1 parent 2a344d2 commit 7067b5a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
edition = "2021"
55

66
[features]
7-
default = ["glam"]
7+
default = []
88
glam = ["dep:glam"]
99
spirv-std = ["dep:spirv-std"]
1010

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@
77
88
#![no_std]
99

10-
#[cfg(not(feature = "spirv-std"))]
10+
#[cfg(feature = "glam")]
1111
pub use glam;
1212

1313
#[cfg(feature = "spirv-std")]
1414
pub use spirv_std::glam;
1515

16+
#[cfg(all(not(feature = "glam"), not(feature = "spirv-std")))]
17+
compile_error!("Either the glam or spirv-std feature must be enabled.");
18+
1619
pub mod reflect;
1720
pub mod saturate;
1821
pub mod smooth_step;

0 commit comments

Comments
 (0)