[package]
edition = "2021"
rust-version = "1.76"
name = "iohidmanager"
version = "0.7.1"
authors = ["Per Johansson <per@doom.fish>"]
build = "build.rs"
include = [
"src/**/*",
"examples/**/*",
"tests/**/*",
"swift-bridge/Package.swift",
"swift-bridge/Sources/**/*",
"build.rs",
"Cargo.toml",
"README.md",
"LICENSE-*",
"CHANGELOG.md",
"COVERAGE.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"
[features]
async = []
default = ["raw-ffi"]
raw-ffi = []
[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"
[[example]]
name = "06_manager_callbacks"
path = "examples/06_manager_callbacks.rs"
[[example]]
name = "07_device_roundtrip"
path = "examples/07_device_roundtrip.rs"
[[example]]
name = "08_element_attachment"
path = "examples/08_element_attachment.rs"
[[example]]
name = "09_value_constructors"
path = "examples/09_value_constructors.rs"
[[example]]
name = "10_transaction_roundtrip"
path = "examples/10_transaction_roundtrip.rs"
[[example]]
name = "11_queue_roundtrip"
path = "examples/11_queue_roundtrip.rs"
[[example]]
name = "12_keys_catalog"
path = "examples/12_keys_catalog.rs"
[[example]]
name = "13_usage_catalog"
path = "examples/13_usage_catalog.rs"
[[example]]
name = "14_service_plugin_ids"
path = "examples/14_service_plugin_ids.rs"
[[example]]
name = "15_event_system_catalog"
path = "examples/15_event_system_catalog.rs"
[[example]]
name = "16_low_level_sdk_types"
path = "examples/16_low_level_sdk_types.rs"
[[example]]
name = "17_async_stream"
path = "examples/17_async_stream.rs"
required-features = ["async"]
[[test]]
name = "api_coverage"
path = "tests/api_coverage.rs"
[[test]]
name = "async_stream_tests"
path = "tests/async_stream_tests.rs"
[[test]]
name = "device_tests"
path = "tests/device_tests.rs"
[[test]]
name = "element_tests"
path = "tests/element_tests.rs"
[[test]]
name = "event_system_tests"
path = "tests/event_system_tests.rs"
[[test]]
name = "keys_tests"
path = "tests/keys_tests.rs"
[[test]]
name = "manager_tests"
path = "tests/manager_tests.rs"
[[test]]
name = "queue_tests"
path = "tests/queue_tests.rs"
[[test]]
name = "sdk_gap_surface_tests"
path = "tests/sdk_gap_surface_tests.rs"
[[test]]
name = "service_plugin_tests"
path = "tests/service_plugin_tests.rs"
[[test]]
name = "transaction_tests"
path = "tests/transaction_tests.rs"
[[test]]
name = "usage_tests"
path = "tests/usage_tests.rs"
[[test]]
name = "value_tests"
path = "tests/value_tests.rs"
[dependencies.doom-fish-utils]
version = "0.1"
[dev-dependencies.pollster]
version = "0.3"
[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"