forge
Explore
Log in

Don't you dare go Hollow

niri

Clone
★ 0

0 watching0 forksRustGPL-3.012.1 MiB111f1caTahinli1 day ago3134 commits

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