File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99env :
1010 CARGO_TERM_COLOR : always
11+ RUSTFLAGS : --cfg=web_sys_unstable_apis
1112
1213jobs :
1314 build :
1920 - name : Setup rust environment
2021 run : rustup target add wasm32-unknown-unknown
2122 - name : Build WASM
22- run : RUSTFLAGS=--cfg=web_sys_unstable_apis cargo build --verbose --target wasm32-unknown-unknown
23+ run : cargo build --verbose --target wasm32-unknown-unknown
2324 - name : Build Native (Linux)
2425 run : cargo build --verbose --target x86_64-unknown-linux-gnu
2526 - name : Run clippy
Original file line number Diff line number Diff line change 11[package ]
22name = " cross_usb"
3- version = " 0.3.2 "
3+ version = " 0.3.3 "
44authors = [" G2-Games <ke0bhogsg@gmail.com>" ]
55repository = " https://github.com/G2-Games/cross-usb"
66documentation = " https://docs.rs/cross_usb"
Original file line number Diff line number Diff line change 1616//! is merged into wasm bindgen, getting a list of USB devices is not possible on WASM
1717//! targets. However, this isn't a huge deal as the user gets a list to select from anyway.
1818//!
19+ //! * When compiling this crate on a WASM target, you must use either
20+ //! `RUSTFLAGS=--cfg=web_sys_unstable_apis` or by passing the argument in a
21+ //! `.cargo/config.toml` file. Read more here: https://rustwasm.github.io/wasm-bindgen/web-sys/unstable-apis.html
22+ //!
1923//! ## Example:
2024//! ```no_run
2125//! # tokio_test::block_on(async {
You can’t perform that action at this time.
0 commit comments