Skip to content

Commit

Permalink
Replace crate users with the maintained successor uzers
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb committed Dec 29, 2023
1 parent e91e028 commit 0e0be02
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
19 changes: 10 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ serde_regex = "1.1.0"
terminal_size = "0.3.0"
time = { version = "0.3.22", default-features = false, features = ["std", "alloc", "local-offset", "formatting"] }
unicode-segmentation = "1.10.1"
users = { version = "0.11.0", default-features = false, features = ["cache"] }

[patch.crates-io]
users = { git = 'https://github.com/dhruvkb/rust-users.git' }
uzers = { version = "0.11.3", default-features = false, features = ["cache"] }

[profile.release]
# Reference: https://github.com/johnthagen/min-sized-rust
Expand Down
4 changes: 2 additions & 2 deletions src/models/owner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use crate::enums::Entity;
use std::collections::HashMap;
use std::sync::Arc;
#[cfg(unix)]
use users::os::unix::GroupExt;
use users::{Groups, User, Users, UsersCache};
use uzers::os::unix::GroupExt;
use uzers::{Groups, User, Users, UsersCache};

/// Manages owner information. This manager provides access to the user and
/// group that own a node. It also implements caching.
Expand Down

0 comments on commit 0e0be02

Please sign in to comment.