mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-30 18:27:00 +01:00
44 lines
1.4 KiB
TOML
44 lines
1.4 KiB
TOML
[package]
|
|
autotests = false
|
|
name = "craft-keymap"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
rust-version.workspace = true
|
|
description = "Keyboard bindings for the Craft suite: chords, keymaps, conflicts, overrides and shortcut-set import"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
# The `.kys` reader.
|
|
craft-xml = { workspace = true }
|
|
egui = { workspace = true, optional = true }
|
|
craft-i18n = { workspace = true }
|
|
craft-host = { workspace = true }
|
|
# Chords and command refs are held in `Tracked` models.
|
|
craft-tracked = { workspace = true }
|
|
craft-ui-macros = { workspace = true }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
global-hotkey = { version = "0.9", optional = true }
|
|
|
|
# The systems where global-hotkey grabs keys through X11.
|
|
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies]
|
|
x11rb = { version = "0.13.1", optional = true }
|
|
|
|
[dev-dependencies]
|
|
# `serde` for setting `RawInput` fields only the suite's egui fork has.
|
|
egui = { workspace = true }
|
|
craft-settings = { workspace = true }
|
|
tempfile = "3"
|
|
|
|
[features]
|
|
# The egui key conversions.
|
|
egui = ["dep:egui", "craft-host/ui"]
|
|
# System-wide hotkeys (the `global` module); not built for wasm32.
|
|
global = ["dep:global-hotkey", "dep:x11rb"]
|