Files
roowho2/Cargo.toml
T
oysteikt b1f75b225c
Build and test / check (push) Successful in 1m8s
Build and test / build (push) Successful in 1m52s
Build and test / test (push) Successful in 2m15s
Build and test / docs (push) Successful in 6m24s
Create debs
2026-07-20 23:09:13 +09:00

167 lines
3.5 KiB
TOML

[package]
name = "roowho2"
version = "0.1.0"
edition = "2024"
resolver = "2"
license = "BSD-4-Clause"
authors = [
"Programvareverkstedet <projects@pvv.ntnu.no>",
"The Regents of the University of California",
"Peter Eriksson, Signum Support AB",
]
description = "A modern reimplementation of netkit tools"
categories = ["command-line-interface", "command-line-utilities"]
readme = "README.md"
autobins = false
autolib = false
[dependencies]
anyhow = "1.0.104"
bytes = "1.12.1"
chrono = { version = "0.4.45", features = ["serde"] }
clap = { version = "4.6.2", features = ["derive"] }
futures-util = "0.3.33"
nix = { version = "0.31.3", features = ["hostname", "net", "fs", "user"] }
serde = { version = "1.0.229", features = ["derive"] }
tokio = { version = "1.53.0", features = ["macros", "net", "rt-multi-thread", "signal", "sync", "time"] }
toml = "1.1.3"
tracing = "0.1.44"
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
# onc-rpc = "0.3.2"
sd-notify = { version = "0.5.0", optional = true }
serde_json = "1.0.150"
uucore = { version = "0.9.0", features = ["utmpx"] }
zlink = { version = "0.7.0", features = ["introspection"] }
clap_complete = "4.6.7"
itertools = "0.15.0"
tokio-util = "0.7.18"
caps = "0.5.6"
users = { version = "0.11.0", default-features = false }
tracing-journald = "0.3.2"
chrono-tz = "0.10.4"
[dev-dependencies]
indoc = "2.0.7"
tempfile = "3.27.0"
[features]
default = ["systemd"]
systemd = ["sd-notify", "uucore/feat_systemd_logind"]
[lib]
name = "roowho2_lib"
path = "src/lib.rs"
[[bin]]
name = "roowhod"
bench = false
path = "src/bin/roowhod.rs"
[[bin]]
name = "finger"
bench = false
path = "src/bin/finger.rs"
# [[bin]]
# name = "rup"
# bench = false
# path = "src/bin/rup.rs"
[[bin]]
name = "ruptime"
bench = false
path = "src/bin/ruptime.rs"
# [[bin]]
# name = "rusers"
# bench = false
# path = "src/bin/rusers.rs"
# [[bin]]
# name = "rwall"
# bench = false
# path = "src/bin/rwall.rs"
[[bin]]
name = "rwho"
bench = false
path = "src/bin/rwho.rs"
[profile.releaselto]
inherits = "release"
strip = true
lto = true
codegen-units = 1
[package.metadata.deb]
name = "roowho2"
priority = "optional"
section = "net"
depends = "$auto"
license-file = ["LICENSE", "0"]
maintainer = "Programvareverkstedet <projects@pvv.ntnu.no>"
copyright = "Copyright (c) 2026, Programvareverkstedet"
assets = [
[
"target/release/roowhod",
"usr/bin/roowhod",
"0755"
],
[
"target/release/finger",
"usr/bin/finger",
"0755"
],
[
"target/release/ruptime",
"usr/bin/ruptime",
"0755"
],
[
"target/release/rwho",
"usr/bin/rwho",
"0755"
],
[
"assets/debian/config.toml",
"etc/roowho2/config.toml",
"0644"
],
[
"assets/debian/user_ignore_list.txt",
"etc/roowho2/rwhod-ignore-list",
"0644"
],
[
"assets/debian/user_ignore_list.txt",
"etc/roowho2/fingerd-ignore-list",
"0644"
],
[
"assets/completions/_*",
"usr/share/zsh/site-functions/completions/",
"644",
],
[
"assets/completions/*.bash",
"usr/share/bash-completion/completions/",
"644",
],
[
"assets/completions/*.fish",
"usr/share/fish/vendor_completions.d/",
"644",
],
[
"README.md",
"usr/share/doc/roowho2/",
"644",
],
]
maintainer-scripts = "debian/"
systemd-units = [
{ unit-name = "roowho2", unit-scripts = "assets/systemd", enable = true },
{ unit-name = "roowho2-client", unit-scripts = "assets/systemd", enable = true },
{ unit-name = "roowho2-rwhod", unit-scripts = "assets/systemd", enable = true },
]