mirror of
https://github.com/G2-Games/cross-usb.git
synced 2025-04-19 05:12:53 -05:00
Updated runner and added new docs, bumped version and changed to MIT license
This commit is contained in:
parent
daa2321737
commit
cc8003ea19
3 changed files with 7 additions and 2 deletions
3
.github/workflows/rust.yml
vendored
3
.github/workflows/rust.yml
vendored
|
@ -8,6 +8,7 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
RUSTFLAGS: --cfg=web_sys_unstable_apis
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -19,7 +20,7 @@ jobs:
|
||||||
- name: Setup rust environment
|
- name: Setup rust environment
|
||||||
run: rustup target add wasm32-unknown-unknown
|
run: rustup target add wasm32-unknown-unknown
|
||||||
- name: Build WASM
|
- 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)
|
- name: Build Native (Linux)
|
||||||
run: cargo build --verbose --target x86_64-unknown-linux-gnu
|
run: cargo build --verbose --target x86_64-unknown-linux-gnu
|
||||||
- name: Run clippy
|
- name: Run clippy
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "cross_usb"
|
name = "cross_usb"
|
||||||
version = "0.3.2"
|
version = "0.3.3"
|
||||||
authors = ["G2-Games <ke0bhogsg@gmail.com>"]
|
authors = ["G2-Games <ke0bhogsg@gmail.com>"]
|
||||||
repository = "https://github.com/G2-Games/cross-usb"
|
repository = "https://github.com/G2-Games/cross-usb"
|
||||||
documentation = "https://docs.rs/cross_usb"
|
documentation = "https://docs.rs/cross_usb"
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
//! is merged into wasm bindgen, getting a list of USB devices is not possible on WASM
|
//! 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.
|
//! 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:
|
//! ## Example:
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
//! # tokio_test::block_on(async {
|
//! # tokio_test::block_on(async {
|
||||||
|
|
Loading…
Reference in a new issue