2024-02-06 09:01:26 +04:00
|
|
|
[workspace]
|
|
|
|
|
members = ["niri-visual-tests"]
|
|
|
|
|
|
2024-01-07 09:07:22 +04:00
|
|
|
[workspace.package]
|
2024-02-16 18:00:19 +04:00
|
|
|
version = "0.1.2"
|
2023-08-13 12:46:53 +04:00
|
|
|
description = "A scrollable-tiling Wayland compositor"
|
2023-08-09 11:03:38 +04:00
|
|
|
authors = ["Ivan Molodetskikh <yalterz@gmail.com>"]
|
2023-08-08 16:34:01 +04:00
|
|
|
license = "GPL-3.0-or-later"
|
2023-08-09 11:03:38 +04:00
|
|
|
edition = "2021"
|
2024-01-07 09:07:22 +04:00
|
|
|
repository = "https://github.com/YaLTeR/niri"
|
|
|
|
|
|
|
|
|
|
[workspace.dependencies]
|
2024-02-28 13:45:12 +04:00
|
|
|
anyhow = "1.0.80"
|
2024-01-19 09:41:16 +04:00
|
|
|
bitflags = "2.4.2"
|
2024-02-28 13:45:12 +04:00
|
|
|
clap = { version = "~4.4.18", features = ["derive"] }
|
|
|
|
|
serde = { version = "1.0.197", features = ["derive"] }
|
2024-01-07 09:07:22 +04:00
|
|
|
tracing = { version = "0.1.40", features = ["max_level_trace", "release_max_level_debug"] }
|
2024-02-06 09:01:26 +04:00
|
|
|
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
|
2024-02-28 13:45:12 +04:00
|
|
|
tracy-client = { version = "0.17.0", default-features = false }
|
2024-01-07 09:07:22 +04:00
|
|
|
|
|
|
|
|
[workspace.dependencies.smithay]
|
|
|
|
|
git = "https://github.com/Smithay/smithay.git"
|
|
|
|
|
# path = "../smithay"
|
|
|
|
|
default-features = false
|
|
|
|
|
|
|
|
|
|
[workspace.dependencies.smithay-drm-extras]
|
|
|
|
|
git = "https://github.com/Smithay/smithay.git"
|
|
|
|
|
# path = "../smithay/smithay-drm-extras"
|
|
|
|
|
|
|
|
|
|
[package]
|
|
|
|
|
name = "niri"
|
|
|
|
|
version.workspace = true
|
|
|
|
|
description.workspace = true
|
|
|
|
|
authors.workspace = true
|
|
|
|
|
license.workspace = true
|
|
|
|
|
edition.workspace = true
|
|
|
|
|
repository.workspace = true
|
2023-08-07 19:44:40 +04:00
|
|
|
|
2023-11-25 11:24:35 +04:00
|
|
|
readme = "README.md"
|
|
|
|
|
keywords = ["wayland", "compositor", "tiling", "smithay", "wm"]
|
|
|
|
|
|
2023-08-07 19:44:40 +04:00
|
|
|
[dependencies]
|
2024-02-06 09:01:26 +04:00
|
|
|
anyhow.workspace = true
|
2023-10-11 14:32:29 +04:00
|
|
|
arrayvec = "0.7.4"
|
2024-02-10 15:01:34 +04:00
|
|
|
async-channel = { version = "2.2.0", optional = true }
|
2023-10-10 10:25:26 +04:00
|
|
|
async-io = { version = "1.13.0", optional = true }
|
2024-01-19 09:41:16 +04:00
|
|
|
bitflags = "2.4.2"
|
|
|
|
|
calloop = { version = "0.12.4", features = ["executor", "futures-io"] }
|
2024-02-10 09:33:32 +04:00
|
|
|
clap = { workspace = true, features = ["string"] }
|
2023-08-27 19:34:37 +04:00
|
|
|
directories = "5.0.1"
|
2024-01-17 10:38:32 +04:00
|
|
|
futures-util = { version = "0.3.30", default-features = false, features = ["std", "io"] }
|
2023-12-19 21:06:49 +04:00
|
|
|
git-version = "0.3.9"
|
2024-02-22 10:17:06 +04:00
|
|
|
glam = "0.25.0"
|
2024-02-03 08:20:15 +04:00
|
|
|
input = { version = "0.9.0", features = ["libinput_1_21"] }
|
2023-08-14 15:54:11 +04:00
|
|
|
keyframe = { version = "1.1.1", default-features = false }
|
2024-02-02 17:04:17 +04:00
|
|
|
libc = "0.2.153"
|
2023-09-27 11:51:27 +04:00
|
|
|
log = { version = "0.4.20", features = ["max_level_trace", "release_max_level_debug"] }
|
2024-02-16 18:00:19 +04:00
|
|
|
niri-config = { version = "0.1.2", path = "niri-config" }
|
|
|
|
|
niri-ipc = { version = "0.1.2", path = "niri-ipc", features = ["clap"] }
|
2023-11-24 11:49:07 +04:00
|
|
|
notify-rust = { version = "4.10.0", optional = true }
|
2024-02-28 13:45:12 +04:00
|
|
|
pangocairo = "0.19.2"
|
2024-02-10 15:01:34 +04:00
|
|
|
pipewire = { version = "0.8.0", optional = true }
|
2024-02-28 13:45:12 +04:00
|
|
|
png = "0.17.13"
|
2023-12-08 08:01:52 +04:00
|
|
|
portable-atomic = { version = "1.6.0", default-features = false, features = ["float"] }
|
2024-02-28 13:45:12 +04:00
|
|
|
profiling = "1.0.15"
|
2023-08-27 07:37:36 +04:00
|
|
|
sd-notify = "0.4.1"
|
2024-01-17 10:38:32 +04:00
|
|
|
serde.workspace = true
|
2024-02-28 13:45:12 +04:00
|
|
|
serde_json = "1.0.114"
|
2024-01-07 09:07:22 +04:00
|
|
|
smithay-drm-extras.workspace = true
|
2024-02-06 09:01:26 +04:00
|
|
|
tracing-subscriber.workspace = true
|
2024-01-07 09:07:22 +04:00
|
|
|
tracing.workspace = true
|
2024-01-16 12:53:01 +04:00
|
|
|
tracy-client.workspace = true
|
2023-11-24 11:49:07 +04:00
|
|
|
url = { version = "2.5.0", optional = true }
|
2023-12-19 21:06:49 +04:00
|
|
|
xcursor = "0.3.5"
|
2024-02-28 13:45:12 +04:00
|
|
|
zbus = { version = "~3.15.2", optional = true }
|
2023-08-07 19:44:40 +04:00
|
|
|
|
|
|
|
|
[dependencies.smithay]
|
2024-01-07 09:07:22 +04:00
|
|
|
workspace = true
|
2023-08-07 19:44:40 +04:00
|
|
|
features = [
|
2023-08-09 11:03:38 +04:00
|
|
|
"backend_drm",
|
|
|
|
|
"backend_egl",
|
|
|
|
|
"backend_gbm",
|
|
|
|
|
"backend_libinput",
|
|
|
|
|
"backend_session_libseat",
|
|
|
|
|
"backend_udev",
|
2023-08-07 19:44:40 +04:00
|
|
|
"backend_winit",
|
|
|
|
|
"desktop",
|
2023-08-09 11:03:38 +04:00
|
|
|
"renderer_gl",
|
2024-01-23 20:44:47 +01:00
|
|
|
"renderer_pixman",
|
2023-08-09 11:03:38 +04:00
|
|
|
"renderer_multi",
|
|
|
|
|
"use_system_lib",
|
|
|
|
|
"wayland_frontend",
|
2023-08-07 19:44:40 +04:00
|
|
|
]
|
2023-08-10 14:12:20 +04:00
|
|
|
|
2023-09-27 13:35:02 +04:00
|
|
|
[dev-dependencies]
|
2023-11-24 11:49:07 +04:00
|
|
|
proptest = "1.4.0"
|
2023-09-27 13:35:02 +04:00
|
|
|
proptest-derive = "0.4.0"
|
2024-02-15 10:26:14 +04:00
|
|
|
xshell = "0.2.5"
|
2023-09-27 13:35:02 +04:00
|
|
|
|
2023-08-10 14:12:20 +04:00
|
|
|
[features]
|
2024-02-20 13:54:16 +04:00
|
|
|
default = ["dbus", "systemd", "xdp-gnome-screencast"]
|
|
|
|
|
# Enables D-Bus support (serve various freedesktop and GNOME interfaces, power button handling).
|
2024-02-10 14:58:22 +04:00
|
|
|
dbus = ["zbus", "async-channel", "async-io", "notify-rust", "url"]
|
2024-02-20 13:54:16 +04:00
|
|
|
# Enables systemd integration (global environment, apps in transient scopes).
|
|
|
|
|
systemd = ["dbus"]
|
2023-09-30 09:58:34 +04:00
|
|
|
# Enables screencasting support through xdg-desktop-portal-gnome.
|
2023-10-10 10:25:26 +04:00
|
|
|
xdp-gnome-screencast = ["dbus", "pipewire"]
|
2023-09-30 09:58:34 +04:00
|
|
|
# Enables the Tracy profiler instrumentation.
|
2023-08-10 14:12:20 +04:00
|
|
|
profile-with-tracy = ["profiling/profile-with-tracy", "tracy-client/default"]
|
2024-03-06 21:01:00 +04:00
|
|
|
# Enables dinit integration (global environment).
|
2024-03-06 22:27:43 +05:30
|
|
|
dinit = []
|
2023-08-10 14:12:20 +04:00
|
|
|
|
2023-08-14 15:22:10 +04:00
|
|
|
[profile.release]
|
2023-11-06 09:18:50 +04:00
|
|
|
debug = "line-tables-only"
|
2023-08-14 15:22:10 +04:00
|
|
|
overflow-checks = true
|
2023-11-06 08:47:05 +04:00
|
|
|
lto = "thin"
|
2023-08-27 16:23:02 +04:00
|
|
|
|
2024-01-07 09:28:50 +04:00
|
|
|
[profile.release.package.niri-config]
|
|
|
|
|
# knuffel with chomsky generates a metric ton of debuginfo.
|
|
|
|
|
debug = false
|
|
|
|
|
|
2023-08-27 16:23:02 +04:00
|
|
|
[package.metadata.generate-rpm]
|
2024-02-16 18:00:19 +04:00
|
|
|
version = "0.1.2"
|
2023-08-27 16:23:02 +04:00
|
|
|
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" },
|
2023-11-09 14:52:04 +04:00
|
|
|
{ source = "resources/niri-portals.conf", dest = "/usr/share/xdg-desktop-portal/", mode = "644" },
|
2023-08-27 16:23:02 +04:00
|
|
|
{ source = "resources/niri.service", dest = "/usr/lib/systemd/user/", mode = "644" },
|
2023-11-25 11:01:23 +04:00
|
|
|
{ source = "resources/niri-shutdown.target", dest = "/usr/lib/systemd/user/", mode = "644" },
|
2023-08-27 16:23:02 +04:00
|
|
|
]
|
|
|
|
|
[package.metadata.generate-rpm.requires]
|
|
|
|
|
alacritty = "*"
|
2024-03-05 13:40:57 +04:00
|
|
|
fuzzel = "*"
|