kbd 0.1.0

Pure-logic hotkey engine — key types, modifier tracking, binding matching, layer stacks, sequence resolution. No platform dependencies.
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 = "2024"
rust-version = "1.85"
name = "kbd"
version = "0.1.0"
authors = ["Josh Thomas <josh@joshthomas.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-logic hotkey engine — key types, modifier tracking, binding matching, layer stacks, sequence resolution. No platform dependencies."
readme = "README.md"
keywords = [
    "keyboard",
    "hotkey",
    "keybinding",
    "shortcut",
]
categories = ["data-structures"]
license-file = "LICENSE"
repository = "https://github.com/joshuadavidthomas/kbd"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
serde = ["dep:serde"]

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

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

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

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

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

[[test]]
name = "public_api"
path = "tests/public_api.rs"

[[test]]
name = "serde"
path = "tests/serde.rs"

[dependencies.keyboard-types]
version = "0.8"

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.serde_json]
version = "1.0"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"