mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 21:52:32 +00:00
42 lines
1.2 KiB
TOML
42 lines
1.2 KiB
TOML
[package]
|
|
name = "craft-menu"
|
|
description = "A Craft app's menus: layouts for macOS, Windows, Linux and the web, shortcuts from craft-keymap, a macOS backend (in craft-window), and key equivalents fed back to egui."
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
|
|
[lib]
|
|
# Every test lives in the `it` integration binary, so `cargo test` builds the library once.
|
|
test = false
|
|
|
|
[dependencies]
|
|
craft-behavior = { workspace = true }
|
|
craft-host = { workspace = true }
|
|
craft-i18n = { workspace = true, features = ["collate"] }
|
|
craft-keymap = { workspace = true, features = ["egui"] }
|
|
craft-quit = { workspace = true, features = ["ui"] }
|
|
craft-theme = { workspace = true }
|
|
craft-ui = { workspace = true }
|
|
craft-window = { workspace = true, features = ["appkit"] }
|
|
egui = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
|
|
[features]
|
|
screen-testing = ["craft-ui/testing"]
|
|
|
|
[dev-dependencies]
|
|
# `default_fonts` so that the shortcuts dialog and native menu tests lay out text.
|
|
egui = { workspace = true }
|
|
|
|
[[test]]
|
|
name = "it"
|
|
path = "tests/it/main.rs"
|
|
harness = false
|
|
required-features = ["screen-testing"]
|
|
|
|
[lints]
|
|
workspace = true
|