Fixed compilation without web-unstable-apis on native

This commit is contained in:
G2-Games 2024-07-06 01:37:01 -05:00
parent cc8003ea19
commit 19d19e2d81
2 changed files with 2 additions and 1 deletions

View file

@ -58,4 +58,4 @@ codegen-units = 1
dwarf-debug-info = true dwarf-debug-info = true
[package.metadata.docs.rs] [package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc", "x86_64-apple-darwin", "aarch64-apple-darwin", "wasm32-unknown-unknown"] targets = ["x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc", "x86_64-apple-darwin", "aarch64-apple-darwin"]

View file

@ -165,6 +165,7 @@ macro_rules! device_filter {
} }
} }
#[cfg(target_family = "wasm")]
#[cfg(not(web_sys_unstable_apis))] #[cfg(not(web_sys_unstable_apis))]
compile_error!{ compile_error!{
"Cannot compile `web-sys` (a dependency of this crate) with USB support without `web_sys_unstable_apis`! "Cannot compile `web-sys` (a dependency of this crate) with USB support without `web_sys_unstable_apis`!