buttons 0.8.0

A simple API for storing and querying input state.
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"
name = "buttons"
version = "0.8.0"
authors = ["Vi <violet@hey.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A simple API for storing and querying input state."
homepage = "https://git.sr.ht/~mistodon/buttons"
readme = "README.md"
keywords = [
    "input",
    "keyboard",
    "mouse",
    "touch",
]
categories = ["games"]
license = "CC0-1.0"
repository = "https://git.sr.ht/~mistodon/buttons"

[package.metadata.docs.rs]
features = ["winit"]

[features]
default = []
winit = ["winit_0_30"]
winit_0_21 = ["dep:winit_0_21"]
winit_0_24 = ["dep:winit_0_24"]
winit_0_27 = ["dep:winit_0_27"]
winit_0_29 = ["dep:winit_0_29"]
winit_0_30 = ["dep:winit_0_30"]

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

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

[dependencies.smallvec]
version = "1.14.0"

[dependencies.smol_str]
version = "0.3.2"

[dependencies.winit_0_21]
version = ">= 0.21, < 0.24"
optional = true
package = "winit"

[dependencies.winit_0_24]
version = ">= 0.24, < 0.27"
optional = true
package = "winit"

[dependencies.winit_0_27]
version = ">= 0.27, < 0.29"
optional = true
package = "winit"

[dependencies.winit_0_29]
version = ">= 0.29, < 0.30"
optional = true
package = "winit"

[dependencies.winit_0_30]
version = ">= 0.30"
optional = true
package = "winit"