generated from emilk/eframe_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
120 lines (96 loc) · 2.46 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
[package]
name = "click_storm"
version = "0.2.8"
authors = ["James Lennon"]
edition = "2021"
include = ["LICENSE-APACHE", "LICENSE-MIT", "**/*.rs", "Cargo.toml"]
license = "MIT/Apache-2.0"
publish = false
build = "build.rs"
default-run = "click_storm"
[build-dependencies]
embed-resource = { version = "3.0" }
# Click Storm application
[[bin]]
name = "click_storm"
path = "src/main.rs"
# Currently used to generate the definition files for the scripting engine LSP
[[bin]]
name = "cs_codegen"
path = "crates/cs_codegen/src/main.rs"
required-features = ["scripting"]
[workspace]
members = ["crates/*"]
resolver = "2"
[workspace.lints.rust]
unsafe_op_in_unsafe_fn = "warn"
missing_docs = "warn"
unsafe_code = "deny"
[workspace.lints.clippy]
#pedantic = "warn"
[workspace.dependencies]
cs_hal = { path = "crates/cs_hal" }
cs_scripting = { path = "crates/cs_scripting" }
# Hardware control
enigo = "0.3"
device_query = "3"
# Serialization
serde = { version = "1.0", features = ["derive"] }
# Enum helpers
strum = "0.27"
strum_macros = "0.27"
# Scripting
rhai = { version = "1" }
# Misc
rand = "0.9"
[dependencies]
cs_hal = { workspace = true }
cs_scripting = { workspace = true }
enigo = { workspace = true }
device_query = { workspace = true }
serde = { workspace = true }
strum = { workspace = true }
strum_macros = { workspace = true }
rand = { workspace = true }
rhai = { workspace = true, optional = true, features = [
"only_i32",
"f32_float",
"no_custom_syntax",
# TODO: Check if this is needed
"metadata",
] }
egui = "0.31"
eframe = { version = "0.31", default-features = false, features = [
"accesskit", # Make egui compatible with screen readers. NOTE: adds a lot of dependencies.
"default_fonts", # Embed the default egui fonts.
"glow", # Use the glow rendering backend. Alternative: "wgpu".
"persistence", # Enable restoring app state when restarting the app.
"wayland",
] }
egui_code_editor = "0.2"
egui_dock = { version = "0.16", features = ["serde"] }
# File dialog
rfd = "0.15"
# Localization
fluent = "0.16"
fluent-templates = "0.13"
unic-langid = "0.9"
# Logging
log = "0.4"
env_logger = "0.11"
[dev-dependencies]
criterion = "0.5"
[[bench]]
name = "worker_benchmark"
harness = false
[profile.release]
opt-level = 2
lto = true
strip = true
# Optimize all dependencies even in debug builds
[profile.dev.package."*"]
opt-level = 2
[features]
#default = []
default = ["scripting"]
scripting = ["dep:rhai", "cs_scripting/scripting"]