Skip to content

Commit

Permalink
Rust: replace uses of unmaintained users crate with replacement `us…
Browse files Browse the repository at this point in the history
…ers`

Summary:
## Why

```
UNMAINTAINED RUSTSEC-2023-0040 - 2023-06-01: `users` crate is unmaintained
Package: users 0.11.0

The `users` crate hasn't seen any action since 2020-10-08. The developer seems [MIA] since.

## Recommended alternatives
- [`uzers`]
- [`sysinfo`]

[MIA]: ogham/rust-users#54
[`uzers`]: https://crates.io/crates/uzers
[`sysinfo`]: https://crates.io/crates/sysinfo
```

`uzers` is the community-owned continuation under the `rustadopt` GitHub org. It's seen active development & maintenance since the adoption, has ~13k downloads per month (according to https://lib.rs/crates/uzers), and is one of the recomended alternatives to `users` see RUSTSEC above).

Reviewed By: dtolnay

Differential Revision: D52480103

fbshipit-source-id: 56066d78b7eda9bad00250fbfc06fc095d8c6036
  • Loading branch information
abesto authored and facebook-github-bot committed Jan 3, 2024
1 parent e43d7af commit 00d15c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion below/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ store = { package = "below-store", version = "0.7.1", path = "store" }
tar = "0.4.40"
tempfile = "3.8"
tokio = { version = "1.29.1", features = ["full", "test-util", "tracing"] }
users = "0.11"
uzers = "0.11.3"
view = { package = "below-view", version = "0.7.1", path = "view" }

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions below/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ use tar::Archive;
use tar::Builder as TarBuilder;
use tempfile::TempDir;
use tokio::runtime::Builder as TB;
use users::get_current_uid;
use users::get_user_by_uid;
use uzers::get_current_uid;
use uzers::get_user_by_uid;

mod exitstat;
#[cfg(test)]
Expand Down

0 comments on commit 00d15c6

Please sign in to comment.