leafwing-input-manager 0.21.0

A powerful, flexible and ergonomic way to manage action-input keybindings for the Bevy game engine.
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 = "leafwing-input-manager"
version = "0.21.0"
authors = ["Leafwing Studios"]
build = false
exclude = [
    "assets/**/*",
    "tools/**/*",
    ".github/**/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A powerful, flexible and ergonomic way to manage action-input keybindings for the Bevy game engine."
homepage = "https://leafwing-studios.com/"
readme = "README.md"
keywords = ["bevy"]
categories = [
    "games",
    "game-development",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/leafwing-studios/leafwing-input-manager"

[package.metadata.docs.rs]
all-features = true

[features]
asset = ["bevy/bevy_asset"]
default = [
    "asset",
    "mouse",
    "keyboard",
    "gamepad",
    "picking",
]
docs = [
    "winit/x11",
    "winit/wayland",
]
gamepad = ["bevy/bevy_gilrs"]
keyboard = []
mouse = []
picking = ["bevy/bevy_picking"]
timing = []

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

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

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

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

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

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

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

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

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

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

[[example]]
name = "press_duration"
path = "examples/press_duration.rs"
required-features = ["timing"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.bevy]
version = "0.19"
features = [
    "serialize",
    "std",
    "bevy_log",
    "gamepad",
]
default-features = false

[dependencies.dyn-clone]
version = "1.0"

[dependencies.dyn-eq]
version = "0.1"

[dependencies.dyn-hash]
version = "1.0"

[dependencies.itertools]
version = "0.14"

[dependencies.leafwing_input_manager_macros]
version = "0.17"

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

[dependencies.serde_flexitos]
version = "0.2"

[dependencies.winit]
version = "0.30"
optional = true
default-features = false

[dev-dependencies.bevy]
version = "0.19"
features = [
    "std",
    "bevy_asset",
    "bevy_sprite",
    "bevy_text",
    "bevy_render",
    "bevy_core_pipeline",
    "bevy_state",
    "bevy_window",
    "x11",
]
default-features = false

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

[profile.dev]
opt-level = 3