1 #[cfg(target_arch = "spirv")]
2 macro_rules! unsupported_features {
3     ($($feature:literal),+ $(,)?) => {
4         $(
5             #[cfg(feature = $feature)]
6             compile_error!(
7                 concat!(
8                     "`",
9                     $feature,
10                     "`",
11                     " feature is not supported when building for SPIR-V.",
12                 )
13             );
14         )+
15     }
16 }
17 
18 #[cfg(target_arch = "spirv")]
19 unsupported_features! {
20     "approx",
21     "debug-glam-assert",
22     "glam-assert",
23     "rand",
24     "serde",
25     "std",
26 }
27