forge
Explore
Log in

Don't you dare go Hollow

niri

Clone
★ 0

0 watching0 forksRustGPL-3.012.1 MiB055a94dIvan Molodetskikh1 year ago2247 commits

Cargo.toml178 lines, 5.8 KiBHistoryRawDownload
1[workspace]
2members = [
3 "niri-config",
4 "niri-ipc",
5 "niri-visual-tests",
6]
7
8[workspace.package]
9version = "25.5.1"
10description = "A scrollable-tiling Wayland compositor"
11authors = ["Ivan Molodetskikh <yalterz@gmail.com>"]
12license = "GPL-3.0-or-later"
13edition = "2021"
14repository = "https://github.com/YaLTeR/niri"
15rust-version = "1.80.1"
16
17[workspace.dependencies]
18anyhow = "1.0.98"
19bitflags = "2.9.1"
20clap = { version = "4.5.42", features = ["derive"] }
21insta = "1.43.1"
22serde = { version = "1.0.219", features = ["derive"] }
23serde_json = "1.0.141"
24tracing = { version = "0.1.41", features = ["max_level_trace", "release_max_level_debug"] }
25tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
26tracy-client = { version = "0.18.2", default-features = false }
27
28[workspace.dependencies.smithay]
29# version = "0.4.1"
30git = "https://github.com/Smithay/smithay.git"
31# path = "../smithay"
32default-features = false
33
34[workspace.dependencies.smithay-drm-extras]
35# version = "0.1.0"
36git = "https://github.com/Smithay/smithay.git"
37# path = "../smithay/smithay-drm-extras"
38
39[package]
40name = "niri"
41version.workspace = true
42description.workspace = true
43authors.workspace = true
44license.workspace = true
45edition.workspace = true
46repository.workspace = true
47rust-version.workspace = true
48
49readme = "README.md"
50keywords = ["wayland", "compositor", "tiling", "smithay", "wm"]
51
52[dependencies]
53anyhow.workspace = true
54arrayvec = "0.7.6"
55async-channel = "2.5.0"
56async-io = { version = "2.5.0", optional = true }
57atomic = "0.6.1"
58bitflags.workspace = true
59bytemuck = { version = "1.23.1", features = ["derive"] }
60calloop = { version = "0.14.3", features = ["executor", "futures-io", "signals"] }
61clap = { workspace = true, features = ["string"] }
62clap_complete = "4.5.55"
63clap_complete_nushell = "4.5.8"
64directories = "6.0.0"
65drm-ffi = "0.9.0"
66fastrand = "2.3.0"
67futures-util = { version = "0.3.31", default-features = false, features = ["std", "io"] }
68git-version = "0.3.9"
69glam = "0.30.5"
70input = { version = "0.9.1", features = ["libinput_1_21"] }
71keyframe = { version = "1.1.1", default-features = false }
72libc = "0.2.174"
73libdisplay-info = "0.2.2"
74log = { version = "0.4.27", features = ["max_level_trace", "release_max_level_debug"] }
75niri-config = { version = "25.5.1", path = "niri-config" }
76niri-ipc = { version = "25.5.1", path = "niri-ipc", features = ["clap"] }
77ordered-float = "5.0.0"
78pango = { version = "0.20.12", features = ["v1_44"] }
79pangocairo = "0.20.10"
80pipewire = { git = "https://gitlab.freedesktop.org/pipewire/pipewire-rs.git", optional = true, features = ["v0_3_33"] }
81png = "0.17.16"
82portable-atomic = { version = "1.11.1", default-features = false, features = ["float"] }
83profiling = "1.0.17"
84sd-notify = "0.4.5"
85serde.workspace = true
86serde_json.workspace = true
87smithay-drm-extras.workspace = true
88tracing-subscriber.workspace = true
89tracing.workspace = true
90tracy-client.workspace = true
91url = { version = "2.5.4", optional = true }
92wayland-backend = "0.3.11"
93wayland-scanner = "0.31.7"
94xcursor = "0.3.10"
95zbus = { version = "5.9.0", optional = true }
96
97[dependencies.smithay]
98workspace = true
99features = [
100 "backend_drm",
101 "backend_egl",
102 "backend_gbm",
103 "backend_libinput",
104 "backend_session_libseat",
105 "backend_udev",
106 "backend_winit",
107 "desktop",
108 "renderer_gl",
109 "renderer_pixman",
110 "renderer_multi",
111 "use_system_lib",
112 "wayland_frontend",
113]
114
115[dev-dependencies]
116approx = "0.5.1"
117calloop-wayland-source = "0.4.0"
118insta.workspace = true
119proptest = "1.7.0"
120proptest-derive = { version = "0.6.0", features = ["boxed_union"] }
121rayon = "1.10.0"
122wayland-client = "0.31.11"
123xshell = "0.2.7"
124
125[features]
126default = ["dbus", "systemd", "xdp-gnome-screencast"]
127# Enables D-Bus support (serve various freedesktop and GNOME interfaces, power button handling).
128dbus = ["dep:zbus", "dep:async-io", "dep:url"]
129# Enables systemd integration (global environment, apps in transient scopes).
130systemd = ["dbus"]
131# Enables screencasting support through xdg-desktop-portal-gnome.
132xdp-gnome-screencast = ["dbus", "pipewire"]
133# Enables the Tracy profiler instrumentation.
134profile-with-tracy = ["profiling/profile-with-tracy", "tracy-client/default"]
135# Enables the on-demand Tracy profiler instrumentation.
136profile-with-tracy-ondemand = ["profile-with-tracy", "tracy-client/ondemand", "tracy-client/manual-lifetime"]
137# Enables Tracy allocation profiling.
138profile-with-tracy-allocations = ["profile-with-tracy"]
139# Enables dinit integration (global environment).
140dinit = []
141
142[profile.release]
143debug = "line-tables-only"
144overflow-checks = true
145lto = "thin"
146
147[profile.release.package.niri-config]
148# knuffel with chomsky generates a metric ton of debuginfo.
149debug = false
150
151[profile.dev.package]
152insta.opt-level = 3
153similar.opt-level = 3
154
155[package.metadata.generate-rpm]
156version = "25.05.1"
157assets = [
158 { source = "target/release/niri", dest = "/usr/bin/", mode = "755" },
159 { source = "resources/niri-session", dest = "/usr/bin/", mode = "755" },
160 { source = "resources/niri.desktop", dest = "/usr/share/wayland-sessions/", mode = "644" },
161 { source = "resources/niri-portals.conf", dest = "/usr/share/xdg-desktop-portal/", mode = "644" },
162 { source = "resources/niri.service", dest = "/usr/lib/systemd/user/", mode = "644" },
163 { source = "resources/niri-shutdown.target", dest = "/usr/lib/systemd/user/", mode = "644" },
164]
165[package.metadata.generate-rpm.requires]
166alacritty = "*"
167fuzzel = "*"
168
169[package.metadata.deb]
170depends = "alacritty, fuzzel"
171assets = [
172 ["target/release/niri", "usr/bin/", "755"],
173 ["resources/niri-session", "usr/bin/", "755"],
174 ["resources/niri.desktop", "/usr/share/wayland-sessions/", "644"],
175 ["resources/niri-portals.conf", "/usr/share/xdg-desktop-portal/", "644"],
176 ["resources/niri.service", "/usr/lib/systemd/user/", "644"],
177 ["resources/niri-shutdown.target", "/usr/lib/systemd/user/", "644"],
178]