hidra 0.0.4

Pure Rust HID library.
Documentation
# 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"
rust-version = "1.85"
name = "hidra"
version = "0.0.4"
build = false
include = [
    "src/**/*",
    "examples/**/*",
    "README.md",
    "LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust HID library."
readme = "README.md"
keywords = [
    "hid",
    "usb",
    "webhid",
    "hidraw",
]
categories = [
    "hardware-support",
    "api-bindings",
    "wasm",
]
license = "MIT"
repository = "https://github.com/carlossless/hidra"

[package.metadata.docs.rs]
all-features = true
default-target = "x86_64-unknown-linux-gnu"
targets = [
    "x86_64-unknown-linux-gnu",
    "x86_64-pc-windows-msvc",
    "x86_64-apple-darwin",
    "wasm32-unknown-unknown",
]
rustc-args = ["--cfg=web_sys_unstable_apis"]
rustdoc-args = ["--cfg=web_sys_unstable_apis"]

[features]
default = ["nusb"]
nusb = ["dep:nusb"]

[lib]
name = "hidra"
path = "src/lib.rs"

[[example]]
name = "backends"
path = "examples/backends.rs"

[[example]]
name = "enumerate"
path = "examples/enumerate.rs"

[[example]]
name = "read_async"
path = "examples/read_async.rs"

[[example]]
name = "read_input"
path = "examples/read_input.rs"

[target.'cfg(any(target_os = "linux", target_os = "macos", target_os = "windows"))'.dependencies.nusb]
version = "0.2.7"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3.100"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2.123"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4.73"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.100"
features = [
    "Window",
    "Navigator",
    "DomException",
    "Event",
    "EventTarget",
    "Hid",
    "HidDevice",
    "HidDeviceFilter",
    "HidDeviceRequestOptions",
    "HidConnectionEvent",
    "HidInputReportEvent",
    "HidCollectionInfo",
    "HidReportInfo",
    "HidReportItem",
    "HidUnitSystem",
]

[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"

[target.'cfg(target_os = "macos")'.dependencies.core-foundation-sys]
version = "0.8"

[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.61"
features = [
    "Win32_Foundation",
    "Win32_Devices_DeviceAndDriverInstallation",
    "Win32_Devices_HumanInterfaceDevice",
    "Win32_Devices_Properties",
    "Win32_Storage_FileSystem",
    "Win32_Security",
    "Win32_System_IO",
    "Win32_System_Threading",
    "Win32_UI_Shell_PropertiesSystem",
]

[lints.clippy]
doc_markdown = "warn"

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "deny"
unreachable_pub = "warn"