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