mirror of
https://github.com/G2-Games/cross-usb.git
synced 2025-04-19 05:12:53 -05:00
Fixed compilation without web-unstable-apis
on native
This commit is contained in:
parent
cc8003ea19
commit
19d19e2d81
2 changed files with 2 additions and 1 deletions
|
@ -58,4 +58,4 @@ codegen-units = 1
|
|||
dwarf-debug-info = true
|
||||
|
||||
[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"]
|
||||
|
|
|
@ -165,6 +165,7 @@ macro_rules! device_filter {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(target_family = "wasm")]
|
||||
#[cfg(not(web_sys_unstable_apis))]
|
||||
compile_error!{
|
||||
"Cannot compile `web-sys` (a dependency of this crate) with USB support without `web_sys_unstable_apis`!
|
||||
|
|
Loading…
Reference in a new issue