Skip to content

Commit

Permalink
Updated runner and added new docs, bumped version and changed to MIT …
Browse files Browse the repository at this point in the history
…license
  • Loading branch information
G2-Games committed Jul 6, 2024
1 parent daa2321 commit cc8003e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: --cfg=web_sys_unstable_apis

jobs:
build:
Expand All @@ -19,7 +20,7 @@ jobs:
- name: Setup rust environment
run: rustup target add wasm32-unknown-unknown
- name: Build WASM
run: RUSTFLAGS=--cfg=web_sys_unstable_apis cargo build --verbose --target wasm32-unknown-unknown
run: cargo build --verbose --target wasm32-unknown-unknown
- name: Build Native (Linux)
run: cargo build --verbose --target x86_64-unknown-linux-gnu
- name: Run clippy
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cross_usb"
version = "0.3.2"
version = "0.3.3"
authors = ["G2-Games <[email protected]>"]
repository = "https://github.com/G2-Games/cross-usb"
documentation = "https://docs.rs/cross_usb"
Expand Down
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
//! is merged into wasm bindgen, getting a list of USB devices is not possible on WASM
//! targets. However, this isn't a huge deal as the user gets a list to select from anyway.
//!
//! * When compiling this crate on a WASM target, you must use either
//! `RUSTFLAGS=--cfg=web_sys_unstable_apis` or by passing the argument in a
//! `.cargo/config.toml` file. Read more here: https://rustwasm.github.io/wasm-bindgen/web-sys/unstable-apis.html
//!
//! ## Example:
//! ```no_run
//! # tokio_test::block_on(async {
Expand Down

0 comments on commit cc8003e

Please sign in to comment.