[package]
edition = "2021"
rust-version = "1.76"
name = "iohidmanager"
version = "0.5.0"
authors = ["Per Johansson <per@doom.fish>"]
build = "build.rs"
include = [
"src/**/*",
"examples/**/*",
"tests/**/*",
"build.rs",
"Cargo.toml",
"README.md",
"LICENSE-*",
"CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for Apple's IOKit HID — enumerate, inspect, and subscribe to HID devices on macOS"
homepage = "https://github.com/doom-fish/iohidmanager-rs"
readme = "README.md"
keywords = [
"hid",
"iokit",
"usb",
"macos",
"input",
]
categories = [
"api-bindings",
"os::macos-apis",
"hardware-support",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/iohidmanager-rs"
[package.metadata.docs.rs]
all-features = true
default-target = "aarch64-apple-darwin"
targets = [
"aarch64-apple-darwin",
"x86_64-apple-darwin",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[badges.maintenance]
status = "actively-developed"
[lib]
name = "iohidmanager"
crate-type = ["lib"]
path = "src/lib.rs"
[[example]]
name = "01_list_devices"
path = "examples/01_list_devices.rs"
[[example]]
name = "02_filter_keyboards"
path = "examples/02_filter_keyboards.rs"
[[example]]
name = "03_matching_and_properties"
path = "examples/03_matching_and_properties.rs"
[[example]]
name = "04_elements_and_values"
path = "examples/04_elements_and_values.rs"
[[example]]
name = "05_callback_registration"
path = "examples/05_callback_registration.rs"
[[test]]
name = "api_coverage"
path = "tests/api_coverage.rs"
[dependencies]
[dev-dependencies.regex-lite]
version = "0.1"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
[profile.release]
debug = 2
strip = "none"