Sunbeam Studios

Our open-source projects, here for you!

redox_users (0.4.6)

Published 2026-03-26 11:02:21 +00:00 by siennathesane

Installation

[registry]
default = "gitea"

[registries.gitea]
index = "sparse+" # Sparse index
# index = "" # Git

[net]
git-fetch-with-cli = true
cargo add redox_users@0.4.6

About this package

A Rust library to access Redox users and groups functionality

redox_users

Redox OS APIs for accessing users and groups information. Documentation

High level APIs for:

  • Getting the current process effective user ID.
  • Getting the current process user ID.
  • Getting the current process effective group ID.
  • Getting the current process group ID.
  • Manipulating User and Group information (including adding, removing, and modifying groups and users, in addition to other functionality, see docs)

We recommend to use these APIs instead of directly manipulating the /etc/group and /etc/passwd as this is an implementation detail and might change in the future.

Note that redox_users is an API designed only for use on Redox. It compiles on other platforms (for testing), but it will not work and might produce unexpected behavior.

Hashing

redox_users uses the Argon2 hashing algorithm. The default hashing parameters are as follows:

Argon2::new(10, 1, 4096, Variant::Argon2i)

Dependencies

ID Version
getrandom ^0.2
libredox ^0.1.3
rust-argon2 ^0.8
thiserror ^1.0
zeroize ^1.4

Keywords

redox auth
Details
Cargo
2026-03-26 11:02:21 +00:00
0
Jose Narvaez <goyox86@gmail.com>
Wesley Hershberger <mggmugginsmc@gmail.com>
MIT
16 KiB
Assets (1)
Versions (1) View all
0.4.6 2026-03-26