generated from Leafwing-Studios/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 121
/
Cargo.toml
92 lines (76 loc) · 2.3 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
[package]
name = "leafwing-input-manager"
description = "A powerful, flexible and ergonomic way to manage action-input keybindings for the Bevy game engine."
version = "0.16.0"
authors = ["Leafwing Studios"]
homepage = "https://leafwing-studios.com/"
repository = "https://github.com/leafwing-studios/leafwing-input-manager"
license = "MIT OR Apache-2.0"
edition = "2021"
categories = ["games", "game-development"]
keywords = ["bevy"]
exclude = ["assets/**/*", "tools/**/*", ".github/**/*"]
[profile.dev]
opt-level = 3
[workspace]
members = ["./", "tools/ci", "macros"]
[features]
default = ["asset", "ui", "mouse", "keyboard", "gamepad"]
# Allow support for tracking timing information about actions (how long a button was pressed, etc.)
timing = []
# Adds support for mouse-based inputs.
mouse = []
# Adds support for keyboard-based inputs.
keyboard = []
# Adds support for gamepad-based inputs.
gamepad = ["bevy/bevy_gilrs"]
# Allow using the `InputMap` as `bevy::asset::Asset`.
asset = ['bevy/bevy_asset']
# Add support for 'bevy::ui' integration:
# - Allow 'bevy::ui' to take priority over actions when processing inputs.
ui = ['bevy/bevy_ui']
# Add support for 'egui' integration:
# - Allow 'egui' to take priority over actions when processing inputs.
egui = ['dep:bevy_egui']
[dependencies]
leafwing_input_manager_macros = { path = "macros", version = "0.16" }
bevy = { version = "0.15.0", default-features = false, features = [
"serialize",
] }
bevy_egui = { version = "0.31", optional = true }
derive_more = { version = "0.99", default-features = false, features = [
"display",
"error",
] }
itertools = "0.13"
serde = { version = "1.0", features = ["derive"] }
serde_flexitos = "0.2"
dyn-clone = "1.0"
dyn-eq = "0.1"
dyn-hash = "0.2"
[dev-dependencies]
bevy = { version = "0.15.0", default-features = false, features = [
"bevy_asset",
"bevy_sprite",
"bevy_text",
"bevy_ui",
"bevy_render",
"bevy_core_pipeline",
"bevy_state",
"bevy_window",
"x11",
# TODO Remove these before release. See https://github.com/bevyengine/bevy/issues/13728
"ktx2",
"zstd",
"bevy_pbr",
] }
serde_test = "1.0"
[package.metadata.docs.rs]
all-features = true
[lib]
name = "leafwing_input_manager"
path = "src/lib.rs"
[[example]]
name = "press_duration"
path = "examples/press_duration.rs"
required-features = ["timing"]