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