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