diff options
author | Zoltán Nagy <abesto@meta.com> | 2024-01-03 02:54:06 -0800 |
---|---|---|
committer | Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> | 2024-01-03 02:54:06 -0800 |
commit | 00d15c66fa603e8023eb9523917c2c7dec7eddf8 (patch) | |
tree | 13b62b7d3bb28e892af54b07344040df56a2bf7a | |
parent | e43d7af5e13ac60b366287178b3c19c147ad45e6 (diff) |
Rust: replace uses of unmaintained `users` crate with replacement `users`
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]: https://github.com/ogham/rust-users/issues/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
-rw-r--r-- | below/Cargo.toml | 2 | ||||
-rw-r--r-- | below/src/main.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/below/Cargo.toml b/below/Cargo.toml index f05a602b..9d3fb5af 100644 --- a/below/Cargo.toml +++ b/below/Cargo.toml @@ -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] diff --git a/below/src/main.rs b/below/src/main.rs index 14426fd2..e281424e 100644 --- a/below/src/main.rs +++ b/below/src/main.rs @@ -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)] |