# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "cross_usb" version = "0.4.0" authors = ["G2-Games "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = """ A Rust USB library which works seamlessly across both native and WASM targets. """ documentation = "https://docs.rs/cross_usb" readme = "README.md" keywords = [ "usb", "wasm", "web-usb", "webusb", ] categories = [ "wasm", "web-programming", "hardware-support", ] license = "MIT" repository = "https://github.com/G2-Games/cross-usb" [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", ] [package.metadata.wasm-pack.profile.dev.wasm-bindgen] dwarf-debug-info = true [lib] name = "cross_usb" crate-type = [ "cdylib", "rlib", ] path = "src/lib.rs" [dependencies.thiserror] version = "1.0" [dev-dependencies.tokio-test] version = "0.4.3" [target.'cfg(not(target_family = "wasm"))'.dependencies.nusb] version = "0.1" [target.'cfg(target_family = "wasm")'.dependencies.js-sys] version = "0.3" [target.'cfg(target_family = "wasm")'.dependencies.wasm-bindgen] version = "0.2" [target.'cfg(target_family = "wasm")'.dependencies.wasm-bindgen-futures] version = "0.4" [target.'cfg(target_family = "wasm")'.dependencies.web-sys] version = "0.3" features = [ "Window", "Navigator", "Usb", "UsbDevice", "UsbInterface", "UsbRecipient", "UsbRequestType", "UsbControlTransferParameters", "UsbDeviceRequestOptions", "UsbInTransferResult", "UsbOutTransferResult", ] [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = ["cfg(web_sys_unstable_apis)"]