Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189[workspace]members = [ "niri-config", "niri-ipc", "niri-visual-tests",]
[workspace.package]version = "26.4.0"description = "A scrollable-tiling Wayland compositor"authors = ["Ivan Molodetskikh <yalterz@gmail.com>"]license = "GPL-3.0-or-later"edition = "2021"repository = "https://github.com/niri-wm/niri"rust-version = "1.87"
[workspace.dependencies]anyhow = "1.0.104"bitflags = "2.13.1"clap = { version = "4.6.6", features = ["derive"] }insta = "1.48.0"serde = { version = "1.0.229", features = ["derive"] }serde_json = "1.0.151"tracing = { version = "0.1.44", features = ["max_level_trace", "release_max_level_debug"] }tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }tracy-client = { version = "0.18.4", default-features = false }
[workspace.dependencies.smithay]# version = "0.4.1"git = "https://github.com/Smithay/smithay.git"rev = "4cf0b62028039661477d482ec4758b687d8f4392"default-features = false
[workspace.dependencies.smithay-drm-extras]# version = "0.1.0"git = "https://github.com/Smithay/smithay.git"rev = "4cf0b62028039661477d482ec4758b687d8f4392"# path = "../smithay/smithay-drm-extras"
[package]name = "niri"version.workspace = truedescription.workspace = trueauthors.workspace = truelicense.workspace = trueedition.workspace = truerepository.workspace = truerust-version.workspace = true
readme = "README.md"keywords = ["wayland", "compositor", "tiling", "smithay", "wm"]
[dependencies]accesskit = { version = "0.24", optional = true }accesskit_unix = { version = "0.22", optional = true }anyhow.workspace = truearrayvec = "0.7.8"async-channel = "2.5.0"async-io = { version = "2.6.0", optional = true }atomic = "0.6.1"bitflags.workspace = truebytemuck = { version = "1.25.2", features = ["derive"] }calloop = { version = "0.14.4", features = ["executor", "futures-io", "signals"] }clap = { workspace = true, features = ["string"] }clap_complete = "4.6.9"clap_complete_nushell = "4.6.1"directories = "6.0.0"drm-ffi = "0.9.1"fastrand = "2.5.0"futures-util = { version = "0.3.33", default-features = false, features = ["std", "io"] }git-version = "0.3.9"glam = "0.33"input = { version = "0.10.0", features = ["libinput_1_21"] }keyframe = { version = "1.1.1", default-features = false }libc = "0.2.189"libdisplay-info = "0.3.0"log = { version = "0.4.33", features = ["max_level_trace", "release_max_level_debug"] }niri-config = { version = "26.4.0", path = "niri-config" }niri-ipc = { version = "26.4.0", path = "niri-ipc", features = ["clap"] }ordered-float = "5.3.0"pango = { version = "0.21.5", features = ["v1_44"] }pangocairo = "0.21.5"pipewire = { version = "0.10.0", optional = true, features = ["v0_3_33"] }png = "0.18.1"portable-atomic = "1"profiling = "1.0.18"sd-notify = "0.5.0"serde.workspace = trueserde_json.workspace = truesmithay-drm-extras.workspace = truetracing-subscriber.workspace = truetracing.workspace = truetracy-client.workspace = truewayland-backend = "0.3.16"wayland-scanner = "0.31.11"wayland-server = "0.31.14"xcursor = "0.3.11"zbus = { version = "5.18.0", optional = true }
[dependencies.smithay]workspace = truefeatures = [ "backend_drm", "backend_egl", "backend_gbm", "backend_libinput", "backend_session_libseat", "backend_udev", "backend_winit", "desktop", "renderer_gl", "renderer_pixman", "renderer_multi", "use_system_lib", "wayland_frontend",]
[dev-dependencies]approx = "0.5.1"calloop-wayland-source = "0.4.1"insta.workspace = trueproptest = "1.11.0"proptest-derive = { version = "0.8.0", features = ["boxed_union"] }rayon = "1.12.0"wayland-client = "0.31.15"xshell = "0.2.7"
[build-dependencies]pkg-config = "0.3.33"
[features]default = ["dbus", "systemd", "xdp-gnome-screencast"]# Enables D-Bus support (serve various freedesktop and GNOME interfaces, accessibility tree, power button handling).dbus = ["dep:zbus", "dep:async-io", "dep:accesskit", "dep:accesskit_unix"]# Enables systemd integration (global environment, apps in transient scopes).systemd = ["dbus"]# Enables screencasting support through xdg-desktop-portal-gnome.xdp-gnome-screencast = ["dbus", "pipewire"]# Enables the Tracy profiler instrumentation.profile-with-tracy = ["profiling/profile-with-tracy", "tracy-client/default", "smithay/tracy_gpu_profiling"]# Enables the on-demand Tracy profiler instrumentation.profile-with-tracy-ondemand = ["profile-with-tracy", "tracy-client/ondemand", "tracy-client/manual-lifetime"]# Enables Tracy allocation profiling.profile-with-tracy-allocations = ["profile-with-tracy"]# Enables dinit integration (global environment).dinit = []
[lints.clippy]new_without_default = "allow"collapsible_match = "allow"
[profile.release]debug = "line-tables-only"overflow-checks = truelto = "thin"
[profile.release.package.niri-config]# knuffel with chomsky generates a metric ton of debuginfo.debug = false
[profile.dev.package]insta.opt-level = 3similar.opt-level = 3
[package.metadata.generate-rpm]version = "26.04"assets = [ { source = "target/release/niri", dest = "/usr/bin/", mode = "755" }, { source = "resources/niri-session", dest = "/usr/bin/", mode = "755" }, { source = "resources/niri.desktop", dest = "/usr/share/wayland-sessions/", mode = "644" }, { source = "resources/niri-portals.conf", dest = "/usr/share/xdg-desktop-portal/", mode = "644" }, { source = "resources/niri.service", dest = "/usr/lib/systemd/user/", mode = "644" }, { source = "resources/niri-shutdown.target", dest = "/usr/lib/systemd/user/", mode = "644" },][package.metadata.generate-rpm.requires]alacritty = "*"fuzzel = "*"
[package.metadata.deb]depends = "alacritty, fuzzel"assets = [ ["target/release/niri", "usr/bin/", "755"], ["resources/niri-session", "usr/bin/", "755"], ["resources/niri.desktop", "/usr/share/wayland-sessions/", "644"], ["resources/niri-portals.conf", "/usr/share/xdg-desktop-portal/", "644"], ["resources/niri.service", "/usr/lib/systemd/user/", "644"], ["resources/niri-shutdown.target", "/usr/lib/systemd/user/", "644"],]