mirror of
https://github.com/G2-Games/cross-usb.git
synced 2025-04-19 21:32:53 -05:00
58 lines
1.4 KiB
TOML
58 lines
1.4 KiB
TOML
[package]
|
|
name = "cross_usb"
|
|
version = "0.4.0"
|
|
authors = ["G2-Games <ke0bhogsg@gmail.com>"]
|
|
repository = "https://github.com/G2-Games/cross-usb"
|
|
documentation = "https://docs.rs/cross_usb"
|
|
description = """
|
|
A Rust USB library which works seamlessly across both native and WASM targets.
|
|
"""
|
|
keywords = ["usb", "wasm", "web-usb", "webusb"]
|
|
categories = ["wasm", "web-programming", "hardware-support"]
|
|
readme = "README.md"
|
|
license = "MIT"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
thiserror = "1.0"
|
|
|
|
[dev-dependencies]
|
|
tokio-test = "0.4.3"
|
|
|
|
# Wasm deps
|
|
[target.'cfg(target_family = "wasm")'.dependencies]
|
|
wasm-bindgen = "0.2"
|
|
wasm-bindgen-futures = "0.4"
|
|
js-sys = "0.3"
|
|
|
|
[target.'cfg(target_family = "wasm")'.dependencies.web-sys]
|
|
version = "0.3"
|
|
features = [
|
|
"Window",
|
|
"Navigator",
|
|
"Usb",
|
|
"UsbDevice",
|
|
"UsbInterface",
|
|
"UsbRecipient",
|
|
"UsbRequestType",
|
|
"UsbControlTransferParameters",
|
|
"UsbDeviceRequestOptions",
|
|
"UsbInTransferResult",
|
|
"UsbOutTransferResult",
|
|
]
|
|
|
|
# Non-wasm deps
|
|
[target.'cfg(not(target_family = "wasm"))'.dependencies]
|
|
nusb = "0.1"
|
|
|
|
[package.metadata.wasm-pack.profile.dev.wasm-bindgen]
|
|
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"]
|
|
|
|
[lints.rust]
|
|
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(web_sys_unstable_apis)'] }
|