-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
100 lines (87 loc) · 3.2 KB
/
Copy pathCargo.toml
File metadata and controls
100 lines (87 loc) · 3.2 KB
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
[workspace]
members = ["crates/exec-lib", "crates/core-lib", "crates/windows-lib", "crates/config-lib", "crates/hyprland-plugin", "dep-crates/hyprland-rs", "dep-crates/hyprland-rs/hyprland-macros"]
[workspace.package]
version = "4.9.3"
description = "A modern GTK4-based window switcher for Hyprland"
license = "MIT"
authors = ["h3rmt", "gabrielvincent"]
keywords = ["hyprland"]
repository = "https://github.com/gabrielvincent/switcharoo/"
# update when nixpkgs has a newer rustc
rust-version = "1.91.0"
edition = "2024"
[workspace.dependencies]
anyhow = { version = "1.0.100" }
tracing = { version = "0.1.44" }
serde_json = { version = "1.0.148" }
serde = { version = "1.0.228", features = ["derive"] }
async-channel = { version = "2.5.0", default-features = true }
semver = { version = "1.0.27" }
regex = { version = "1.12.2" }
test-log = { version = "0.2.19", default-features = false, features = ["trace", "unstable"] }
relm4 = { version = "0.10.0", default-features = false, features = ["libadwaita", "macros", "gnome_48"] }
relm4-components = "0.10.0"
gtk4-layer-shell = { version = "0.7.1" }
config-lib = { path = "crates/config-lib", package = "switcharoo-config-lib", version = "=4.9.3" }
core-lib = { path = "crates/core-lib", package = "switcharoo-core-lib", version = "=4.9.3" }
exec-lib = { path = "crates/exec-lib", package = "switcharoo-exec-lib", version = "=4.9.3" }
hyprland-plugin = { path = "crates/hyprland-plugin", package = "switcharoo-hyprland-plugin", version = "=4.9.3" }
[package]
name = "switcharoo"
readme = "README.md"
categories = []
documentation = "https://docs.rs/switcharoo"
version = "4.9.3"
edition.workspace = true
description.workspace = true
license.workspace = true
authors.workspace = true
keywords.workspace = true
repository.workspace = true
rust-version.workspace = true
exclude = [".idea/*", ".github/*"]
[dependencies]
anyhow.workspace = true
tracing.workspace = true
relm4.workspace = true
async-channel.workspace = true
semver.workspace = true
clap = { version = "4.5.47", features = ["derive"] }
clap_complete = "4.5.57"
tracing-subscriber = { version = "0.3.20", features = ["fmt", "env-filter", "ansi"], default-features = false }
signal-hook = { version = "0.4.1" }
config-lib.workspace = true
core-lib.workspace = true
exec-lib.workspace = true
windows-lib = { path = "crates/windows-lib", package = "switcharoo-windows-lib", version = "=4.9.3" }
[dev-dependencies]
test-log.workspace = true
[features]
default = ["json5_config", "debug_command"]
slim = ["debug_command"]
json5_config = ["config-lib/json5_config"]
debug_command = []
ci_config_check = ["config-lib/ci_no_default_config_values"]
[profile.release]
strip = "debuginfo"
lto = true
opt-level = 3
[lints]
workspace = true
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
unwrap_used = "deny"
single_match = "allow"
match_wildcard_for_single_variants = "allow"
struct_excessive_bools = "allow"
missing_errors_doc = "allow"
cast_possible_truncation = "allow"
# This is broken
uninlined_format_args = "warn"
unnecessary_debug_formatting = "warn"
unnecessary_wraps = "warn"
pathbuf_init_then_push = "warn"
print_stdout = "warn"
print_stderr = "warn"