Don't enable WGPU in std .
diff --git a/sparse_strips/vello_hybrid/Cargo.toml b/sparse_strips/vello_hybrid/Cargo.toml index 81a51f3..a50155f 100644 --- a/sparse_strips/vello_hybrid/Cargo.toml +++ b/sparse_strips/vello_hybrid/Cargo.toml
@@ -48,7 +48,7 @@ [features] default = ["wgpu", "wgpu_default", "text"] -std = ["wgpu", "vello_common/std", "glifo?/std"] +std = ["vello_common/std", "glifo?/std"] libm = ["vello_common/libm", "glifo?/libm"] wgpu = ["dep:wgpu", "dep:vello_sparse_shaders"] # Enable wgpu with its default features. If you need to customise the set of enabled wgpu features,
diff --git a/sparse_strips/vello_hybrid/src/lib.rs b/sparse_strips/vello_hybrid/src/lib.rs index 2163d6c..9f5b94f 100644 --- a/sparse_strips/vello_hybrid/src/lib.rs +++ b/sparse_strips/vello_hybrid/src/lib.rs
@@ -67,6 +67,14 @@ //! these and other limitations in future releases. #![no_std] +#![cfg_attr( + not(any(feature = "wgpu", feature = "webgl")), + allow( + dead_code, + unused_imports, + reason = "backend implementations are unused when none is enabled" + ) +)] extern crate alloc;