[package]
edition = "2024"
rust-version = "1.85"
name = "libremicro"
version = "0.1.0"
build = false
exclude = [
".github/**",
".agents/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Direct, typed access to the stock Codex Micro HID interface"
homepage = "https://github.com/uint4/libremicro"
documentation = "https://docs.rs/libremicro"
readme = "README.md"
keywords = [
"codex-micro",
"hid",
"hidraw",
"macropad",
]
categories = [
"api-bindings",
"hardware-support",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/uint4/libremicro"
resolver = "3"
[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
[features]
default = []
live-hardware-tests = []
persistent-writes = []
[lib]
name = "libremicro"
path = "src/lib.rs"
[[example]]
name = "lighting"
path = "examples/lighting.rs"
[[example]]
name = "monitor"
path = "examples/monitor.rs"
[[test]]
name = "hardware_live"
path = "tests/hardware_live.rs"
[[test]]
name = "hardware_read_only"
path = "tests/hardware_read_only.rs"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
features = ["preserve_order"]
[dependencies.sha2]
version = "0.10"
[dependencies.thiserror]
version = "2.0"
[dependencies.tracing]
version = "0.1"
[dev-dependencies.proptest]
version = "1.7"
[target.'cfg(target_os = "linux")'.dependencies.rustix]
version = "1.1"
features = [
"event",
"fs",
"std",
]
[lints.clippy]
all = "warn"
[lints.rust]
missing_docs = "deny"
unsafe_code = "forbid"
[lints.rust.future_incompatible]
level = "warn"
priority = -1
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1