Skip to content

Commit ab2bc63

Browse files
committed
Replace abandoned users crate with uzers fork
The `users` crate is no longer maintained. Replace it with `uzers`, a maintained fork that provides the same API. Changes: - Update Cargo.toml: users 0.11 -> uzers 0.12 - Update src/dbus_stats.rs: change import from users to uzers Tested: cargo build succeeds, all 24 tests pass (cargo test)
1 parent fe36399 commit ab2bc63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ tracing = "0.1"
3232
tracing-core = "0.1"
3333
tracing-glog = "0.4"
3434
tracing-subscriber = "0.3"
35-
users = "0.11"
35+
uzers = "0.12"
3636
zbus = { version = "5.11.0", features = ["tokio"], default-features = false }
3737
zvariant = "5.7.0"
3838
zvariant_derive = "5.7.0"

src/dbus_stats.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::sync::Arc;
1010
use anyhow::Result;
1111
use tokio::sync::RwLock;
1212
use tracing::error;
13-
use users::get_user_by_uid;
13+
use uzers::get_user_by_uid;
1414
use zbus::fdo::{DBusProxy, StatsProxy};
1515
use zbus::names::BusName;
1616
use zvariant::{Dict, OwnedValue, Value};

0 commit comments

Comments
 (0)