niri/Cargo.toml

90 lines
3.0 KiB
TOML
Raw Normal View History

2023-08-07 18:44:40 +03:00
[package]
name = "niri"
version = "0.1.0"
description = "A scrollable-tiling Wayland compositor"
2023-08-09 10:03:38 +03:00
authors = ["Ivan Molodetskikh <yalterz@gmail.com>"]
license = "GPL-3.0-or-later"
2023-08-09 10:03:38 +03:00
edition = "2021"
2023-08-07 18:44:40 +03:00
[dependencies]
2023-09-06 16:31:59 +03:00
anyhow = { version = "1.0.75" }
arrayvec = "0.7.4"
async-channel = { version = "2.1.0", optional = true }
async-io = { version = "1.13.0", optional = true }
2023-10-24 14:05:14 +03:00
bitflags = "2.4.1"
2023-11-24 10:49:07 +03:00
clap = { version = "4.4.8", features = ["derive"] }
2023-08-27 18:34:37 +03:00
directories = "5.0.1"
2023-11-24 21:04:53 +03:00
git-version = "0.3.8"
2023-08-14 14:54:11 +03:00
keyframe = { version = "1.1.1", default-features = false }
2023-09-05 11:58:51 +03:00
knuffel = "3.2.0"
libc = "0.2.150"
logind-zbus = { version = "3.1.2", optional = true }
2023-09-27 10:51:27 +03:00
log = { version = "0.4.20", features = ["max_level_trace", "release_max_level_debug"] }
miette = "5.10.0"
2023-11-24 10:49:07 +03:00
notify-rust = { version = "4.10.0", optional = true }
pipewire = { version = "0.7.2", optional = true }
png = "0.17.10"
portable-atomic = { version = "1.5.1", default-features = false, features = ["float"] }
2023-09-18 18:53:15 +03:00
profiling = "1.0.11"
sd-notify = "0.4.1"
2023-11-24 10:49:07 +03:00
serde = { version = "1.0.193", features = ["derive"] }
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
2023-10-24 14:05:14 +03:00
tracing = { version = "0.1.40", features = ["max_level_trace", "release_max_level_debug"] }
tracy-client = { version = "0.16.4", default-features = false }
2023-11-24 10:49:07 +03:00
url = { version = "2.5.0", optional = true }
xcursor = "0.3.4"
zbus = { version = "3.14.1", optional = true }
2023-08-07 18:44:40 +03:00
[dependencies.smithay]
git = "https://github.com/Smithay/smithay.git"
# path = "../smithay"
2023-08-07 18:44:40 +03:00
default-features = false
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-09-02 14:09:07 +03:00
"libinput_1_19",
2023-08-09 10:03:38 +03:00
"renderer_gl",
"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-03 16:13:35 +03:00
[dependencies.smithay-drm-extras]
git = "https://github.com/Smithay/smithay.git"
# path = "../smithay/smithay-drm-extras"
2023-09-03 16:13:35 +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"
2023-08-10 13:12:20 +03:00
[features]
default = ["dbus", "xdp-gnome-screencast"]
# Enables DBus support (required for xdp-gnome and power button inhibiting).
2023-10-31 16:06:14 +03:00
dbus = ["zbus", "logind-zbus", "async-channel", "async-io", "notify-rust", "url"]
# Enables screencasting support through xdg-desktop-portal-gnome.
xdp-gnome-screencast = ["dbus", "pipewire"]
# Enables the Tracy profiler instrumentation.
2023-08-10 13:12:20 +03:00
profile-with-tracy = ["profiling/profile-with-tracy", "tracy-client/default"]
2023-08-14 14:22:10 +03:00
[profile.release]
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
[package.metadata.generate-rpm]
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" },
2023-08-27 15:23:02 +03:00
{ source = "resources/niri.service", dest = "/usr/lib/systemd/user/", mode = "644" },
]
[package.metadata.generate-rpm.requires]
alacritty = "*"