niri
Clone
https://git.tahinli.com/Tahinli/niri.git
0 watching0 forksRustGPL-3.012.1 MiB055a94dIvan Molodetskikh1 year ago2247 commits
| 1 | [workspace] |
| 2 | members = [ |
| 3 | "niri-config", |
| 4 | "niri-ipc", |
| 5 | "niri-visual-tests", |
| 6 | ] |
| 7 | |
| 8 | [workspace.package] |
| 9 | version = "25.5.1" |
| 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/YaLTeR/niri" |
| 15 | rust-version = "1.80.1" |
| 16 | |
| 17 | [workspace.dependencies] |
| 18 | anyhow = "1.0.98" |
| 19 | bitflags = "2.9.1" |
| 20 | clap = { version = "4.5.42", features = ["derive"] } |
| 21 | insta = "1.43.1" |
| 22 | serde = { version = "1.0.219", features = ["derive"] } |
| 23 | serde_json = "1.0.141" |
| 24 | tracing = { version = "0.1.41", features = ["max_level_trace", "release_max_level_debug"] } |
| 25 | tracing-subscriber = { version = "0.3.19", features = ["env-filter"] } |
| 26 | tracy-client = { version = "0.18.2", default-features = false } |
| 27 | |
| 28 | [workspace.dependencies.smithay] |
| 29 | # version = "0.4.1" |
| 30 | git = "https://github.com/Smithay/smithay.git" |
| 31 | # path = "../smithay" |
| 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 | # path = "../smithay/smithay-drm-extras" |
| 38 | |
| 39 | [package] |
| 40 | name = "niri" |
| 41 | version.workspace = true |
| 42 | description.workspace = true |
| 43 | authors.workspace = true |
| 44 | license.workspace = true |
| 45 | edition.workspace = true |
| 46 | repository.workspace = true |
| 47 | rust-version.workspace = true |
| 48 | |
| 49 | readme = "README.md" |
| 50 | keywords = ["wayland", "compositor", "tiling", "smithay", "wm"] |
| 51 | |
| 52 | [dependencies] |
| 53 | anyhow.workspace = true |
| 54 | arrayvec = "0.7.6" |
| 55 | async-channel = "2.5.0" |
| 56 | async-io = { version = "2.5.0", optional = true } |
| 57 | atomic = "0.6.1" |
| 58 | bitflags.workspace = true |
| 59 | bytemuck = { version = "1.23.1", features = ["derive"] } |
| 60 | calloop = { version = "0.14.3", features = ["executor", "futures-io", "signals"] } |
| 61 | clap = { workspace = true, features = ["string"] } |
| 62 | clap_complete = "4.5.55" |
| 63 | clap_complete_nushell = "4.5.8" |
| 64 | directories = "6.0.0" |
| 65 | drm-ffi = "0.9.0" |
| 66 | fastrand = "2.3.0" |
| 67 | futures-util = { version = "0.3.31", default-features = false, features = ["std", "io"] } |
| 68 | git-version = "0.3.9" |
| 69 | glam = "0.30.5" |
| 70 | input = { version = "0.9.1", features = ["libinput_1_21"] } |
| 71 | keyframe = { version = "1.1.1", default-features = false } |
| 72 | libc = "0.2.174" |
| 73 | libdisplay-info = "0.2.2" |
| 74 | log = { version = "0.4.27", features = ["max_level_trace", "release_max_level_debug"] } |
| 75 | niri-config = { version = "25.5.1", path = "niri-config" } |
| 76 | niri-ipc = { version = "25.5.1", path = "niri-ipc", features = ["clap"] } |
| 77 | ordered-float = "5.0.0" |
| 78 | pango = { version = "0.20.12", features = ["v1_44"] } |
| 79 | pangocairo = "0.20.10" |
| 80 | pipewire = { git = "https://gitlab.freedesktop.org/pipewire/pipewire-rs.git", optional = true, features = ["v0_3_33"] } |
| 81 | png = "0.17.16" |
| 82 | portable-atomic = { version = "1.11.1", default-features = false, features = ["float"] } |
| 83 | profiling = "1.0.17" |
| 84 | sd-notify = "0.4.5" |
| 85 | serde.workspace = true |
| 86 | serde_json.workspace = true |
| 87 | smithay-drm-extras.workspace = true |
| 88 | tracing-subscriber.workspace = true |
| 89 | tracing.workspace = true |
| 90 | tracy-client.workspace = true |
| 91 | url = { version = "2.5.4", optional = true } |
| 92 | wayland-backend = "0.3.11" |
| 93 | wayland-scanner = "0.31.7" |
| 94 | xcursor = "0.3.10" |
| 95 | zbus = { version = "5.9.0", optional = true } |
| 96 | |
| 97 | [dependencies.smithay] |
| 98 | workspace = true |
| 99 | features = [ |
| 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] |
| 116 | approx = "0.5.1" |
| 117 | calloop-wayland-source = "0.4.0" |
| 118 | insta.workspace = true |
| 119 | proptest = "1.7.0" |
| 120 | proptest-derive = { version = "0.6.0", features = ["boxed_union"] } |
| 121 | rayon = "1.10.0" |
| 122 | wayland-client = "0.31.11" |
| 123 | xshell = "0.2.7" |
| 124 | |
| 125 | [features] |
| 126 | default = ["dbus", "systemd", "xdp-gnome-screencast"] |
| 127 | # Enables D-Bus support (serve various freedesktop and GNOME interfaces, power button handling). |
| 128 | dbus = ["dep:zbus", "dep:async-io", "dep:url"] |
| 129 | # Enables systemd integration (global environment, apps in transient scopes). |
| 130 | systemd = ["dbus"] |
| 131 | # Enables screencasting support through xdg-desktop-portal-gnome. |
| 132 | xdp-gnome-screencast = ["dbus", "pipewire"] |
| 133 | # Enables the Tracy profiler instrumentation. |
| 134 | profile-with-tracy = ["profiling/profile-with-tracy", "tracy-client/default"] |
| 135 | # Enables the on-demand Tracy profiler instrumentation. |
| 136 | profile-with-tracy-ondemand = ["profile-with-tracy", "tracy-client/ondemand", "tracy-client/manual-lifetime"] |
| 137 | # Enables Tracy allocation profiling. |
| 138 | profile-with-tracy-allocations = ["profile-with-tracy"] |
| 139 | # Enables dinit integration (global environment). |
| 140 | dinit = [] |
| 141 | |
| 142 | [profile.release] |
| 143 | debug = "line-tables-only" |
| 144 | overflow-checks = true |
| 145 | lto = "thin" |
| 146 | |
| 147 | [profile.release.package.niri-config] |
| 148 | # knuffel with chomsky generates a metric ton of debuginfo. |
| 149 | debug = false |
| 150 | |
| 151 | [profile.dev.package] |
| 152 | insta.opt-level = 3 |
| 153 | similar.opt-level = 3 |
| 154 | |
| 155 | [package.metadata.generate-rpm] |
| 156 | version = "25.05.1" |
| 157 | assets = [ |
| 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] |
| 166 | alacritty = "*" |
| 167 | fuzzel = "*" |
| 168 | |
| 169 | [package.metadata.deb] |
| 170 | depends = "alacritty, fuzzel" |
| 171 | assets = [ |
| 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 | ] |