forge
Explore
Log in

Don't you dare go Hollow

niri

Clone
★ 0

0 watching0 forksRustGPL-3.012.1 MiB53500dcTahinli1 month ago2998 commits

Cargo.toml189 lines, 6.0 KiBHistoryRawDownload
1[workspace]
2members = [
3 "niri-config",
4 "niri-ipc",
5 "niri-visual-tests",
6]
7
8[workspace.package]
9version = "26.4.0"
10description = "A scrollable-tiling Wayland compositor"
11authors = ["Ivan Molodetskikh <yalterz@gmail.com>"]
12license = "GPL-3.0-or-later"
13edition = "2021"
14repository = "https://github.com/niri-wm/niri"
15rust-version = "1.87"
16
17[workspace.dependencies]
18anyhow = "1.0.104"
19bitflags = "2.13"
20clap = { version = "4.6.6", features = ["derive"] }
21insta = "1.48.0"
22serde = { version = "1.0.229", features = ["derive"] }
23serde_json = "1.0.151"
24tracing = { version = "0.1.44", features = ["max_level_trace", "release_max_level_debug"] }
25tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
26tracy-client = { version = "0.18.5", default-features = false }
27
28[workspace.dependencies.smithay]
29# version = "0.4.1"
30git = "https://github.com/Smithay/smithay.git"
31rev = "8a270232f1bfc416c781273c98a3f52a812a0bba"
32default-features = false
33
34[workspace.dependencies.smithay-drm-extras]
35# version = "0.1.0"
36git = "https://github.com/Smithay/smithay.git"
37rev = "8a270232f1bfc416c781273c98a3f52a812a0bba"
38# path = "../smithay/smithay-drm-extras"
39
40[package]
41name = "niri"
42version.workspace = true
43description.workspace = true
44authors.workspace = true
45license.workspace = true
46edition.workspace = true
47repository.workspace = true
48rust-version.workspace = true
49
50readme = "README.md"
51keywords = ["wayland", "compositor", "tiling", "smithay", "wm"]
52
53[dependencies]
54accesskit = { version = "0.25", optional = true }
55accesskit_unix = { version = "0.23", optional = true }
56anyhow.workspace = true
57arrayvec = "0.7.8"
58async-channel = "2.5.0"
59async-io = { version = "2.6.0", optional = true }
60atomic = "0.6.1"
61bitflags.workspace = true
62bytemuck = { version = "1.25.2", features = ["derive"] }
63calloop = { version = "0.14.5", features = ["executor", "futures-io", "signals"] }
64clap = { workspace = true, features = ["string"] }
65clap_complete = "4.6"
66clap_complete_nushell = "4.6"
67directories = "6.0.0"
68drm-ffi = "0.9.1"
69fastrand = "2.5.0"
70futures-util = { version = "0.3", default-features = false, features = ["std", "io"] }
71git-version = "0.3.9"
72glam = "0.33"
73input = { version = "0.10.0", features = ["libinput_1_21"] }
74keyframe = { version = "1.1.1", default-features = false }
75libc = "0.2.189"
76libdisplay-info = "0.3.0"
77log = { version = "0.4", features = ["max_level_trace", "release_max_level_debug"] }
78niri-config = { version = "26.4.0", path = "niri-config" }
79niri-ipc = { version = "26.4.0", path = "niri-ipc", features = ["clap"] }
80ordered-float = "5"
81pango = { version = "0.21.5", features = ["v1_44"] }
82pangocairo = "0.21.5"
83pipewire = { version = "0.10", optional = true, features = ["v0_3_33"] }
84png = "0.18.1"
85portable-atomic = "1"
86profiling = "1.0.18"
87sd-notify = "0.5.0"
88serde.workspace = true
89serde_json.workspace = true
90smithay-drm-extras.workspace = true
91tracing-subscriber.workspace = true
92tracing.workspace = true
93tracy-client.workspace = true
94wayland-backend = "0.3"
95wayland-scanner = "0.31.11"
96wayland-server = "0.31.14"
97xcursor = "0.3.11"
98zbus = { version = "5", optional = true }
99
100[dependencies.smithay]
101workspace = true
102features = [
103 "backend_drm",
104 "backend_egl",
105 "backend_gbm",
106 "backend_libinput",
107 "backend_session_libseat",
108 "backend_udev",
109 "backend_winit",
110 "desktop",
111 "renderer_gl",
112 "renderer_pixman",
113 "renderer_multi",
114 "use_system_lib",
115 "wayland_frontend",
116]
117
118[dev-dependencies]
119approx = "0.5.1"
120calloop-wayland-source = "0.4.1"
121insta.workspace = true
122proptest = "1.11.0"
123proptest-derive = { version = "0.8.0", features = ["boxed_union"] }
124rayon = "1.12.0"
125wayland-client = "0.31.15"
126xshell = "0.2.7"
127
128[build-dependencies]
129pkg-config = "0.3"
130
131[features]
132default = ["dbus", "systemd", "xdp-gnome-screencast"]
133# Enables D-Bus support (serve various freedesktop and GNOME interfaces, accessibility tree, power button handling).
134dbus = ["dep:zbus", "dep:async-io", "dep:accesskit", "dep:accesskit_unix"]
135# Enables systemd integration (global environment, apps in transient scopes).
136systemd = ["dbus"]
137# Enables screencasting support through xdg-desktop-portal-gnome.
138xdp-gnome-screencast = ["dbus", "pipewire"]
139# Enables the Tracy profiler instrumentation.
140profile-with-tracy = ["profiling/profile-with-tracy", "tracy-client/default", "smithay/tracy_gpu_profiling"]
141# Enables the on-demand Tracy profiler instrumentation.
142profile-with-tracy-ondemand = ["profile-with-tracy", "tracy-client/ondemand", "tracy-client/manual-lifetime"]
143# Enables Tracy allocation profiling.
144profile-with-tracy-allocations = ["profile-with-tracy"]
145# Enables dinit integration (global environment).
146dinit = []
147
148[lints.clippy]
149new_without_default = "allow"
150collapsible_match = "allow"
151
152[profile.release]
153debug = "line-tables-only"
154overflow-checks = true
155lto = "thin"
156
157[profile.release.package.niri-config]
158# knuffel with chomsky generates a metric ton of debuginfo.
159debug = false
160
161[profile.dev.package]
162insta.opt-level = 3
163similar.opt-level = 3
164png.opt-level = 3
165
166[package.metadata.generate-rpm]
167version = "26.04"
168assets = [
169 { source = "target/release/niri", dest = "/usr/bin/", mode = "755" },
170 { source = "resources/niri-session", dest = "/usr/bin/", mode = "755" },
171 { source = "resources/niri.desktop", dest = "/usr/share/wayland-sessions/", mode = "644" },
172 { source = "resources/niri-portals.conf", dest = "/usr/share/xdg-desktop-portal/", mode = "644" },
173 { source = "resources/niri.service", dest = "/usr/lib/systemd/user/", mode = "644" },
174 { source = "resources/niri-shutdown.target", dest = "/usr/lib/systemd/user/", mode = "644" },
175]
176[package.metadata.generate-rpm.requires]
177alacritty = "*"
178fuzzel = "*"
179
180[package.metadata.deb]
181depends = "alacritty, fuzzel"
182assets = [
183 ["target/release/niri", "usr/bin/", "755"],
184 ["resources/niri-session", "usr/bin/", "755"],
185 ["resources/niri.desktop", "/usr/share/wayland-sessions/", "644"],
186 ["resources/niri-portals.conf", "/usr/share/xdg-desktop-portal/", "644"],
187 ["resources/niri.service", "/usr/lib/systemd/user/", "644"],
188 ["resources/niri-shutdown.target", "/usr/lib/systemd/user/", "644"],
189]