chore: checkpoint before Python removal

This commit is contained in:
2026-03-26 22:33:59 +00:00
parent 683cec9307
commit e568ddf82a
29972 changed files with 11269302 additions and 2 deletions

View File

@@ -0,0 +1 @@
{"files":{".cargo_vcs_info.json":"640c75092027dbc6ee2f25eeef986b82d6649833554284dcc282bf78d90d5786",".gitlab-ci.yml":"0abd216100351cbd47056ffd240869cc30566a875440474c5c2042f3085d8180",".rustfmt.toml":"13828f337b46c458fb6ddb84dabddfe40aee1ab9ea1a863ec35b97a350b0a903",".travis.yml":"afdf89c9727b02d039988dc71ee0b5341348407e56ac48cd887f6ddaeafc1e62","Cargo.toml":"5ff1929351528d4fa6a2fdc09cec44449fece845eafb547d3251622bcd9d07e5","Cargo.toml.orig":"90a5de63a01af42dc4326a272b2212ffa86b4f7acd62ecc0f0528ebc3b2d2104","LICENSE":"e6a8ae2d796083783efc94b1e66271aa2929dc4dfb231d34239aa9c7db8396db","README.md":"9c3a6fd2a798bd1e105c5ee72f7b475471e3a9abec89b5be2b5263d654085d22","src/lib.rs":"847aa95ce9b0016b50569ee8d55b621f5d19b43139fb9e41fc86097f687a6e30","tests/etc/group":"58d984dc8eb895c684669e2a41c9b39ed771fb86b5ab0c300b3f262f0088c341","tests/etc/passwd":"3728274286c9e78a8a3f17c0973930eb112e9cc7959de2310510ba0d6b60bf49","tests/etc/shadow":"aecc1cba1a7ab65612abc049e2ea32c99401bacefb1259e23f75c004fb75896d"},"package":"ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43"}

View File

@@ -0,0 +1,6 @@
{
"git": {
"sha1": "9a2aea6f0d79f2e3c439fbd3ad91df2e3d39c5a0"
},
"path_in_vcs": ""
}

32
vendor/redox_users/.gitlab-ci.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
image: "redoxos/redoxer"
stages:
- build
- test
cache:
paths:
- target/
build:linux:
stage: build
script: cargo +nightly build --verbose
build:redox:
stage: build
script: redoxer build --verbose
test:linux:
stage: test
dependencies:
- build:linux
script:
- cargo +nightly test --verbose -- --test-threads=1
- cargo +nightly test --verbose --no-default-features -- --test-threads=1
test:redox:
stage: test
dependencies:
- build:redox
script: redoxer test --verbose

12
vendor/redox_users/.rustfmt.toml vendored Normal file
View File

@@ -0,0 +1,12 @@
trailing_comma = "Never"
fn_single_line = true
where_single_line = true
match_block_trailing_comma = true
reorder_imported_names = true
reorder_imports = true
reorder_imports_in_group = true
trailing_semicolon = false
use_field_init_shorthand = true
color = "Always"
struct_lit_single_line = true
max_width = 80

6
vendor/redox_users/.travis.yml vendored Normal file
View File

@@ -0,0 +1,6 @@
language: rust
rust:
- nightly
script:
- cargo build --verbose
- cargo test --verbose -- --test-threads=1

68
vendor/redox_users/Cargo.toml vendored Normal file
View File

@@ -0,0 +1,68 @@
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2021"
name = "redox_users"
version = "0.4.6"
authors = [
"Jose Narvaez <goyox86@gmail.com>",
"Wesley Hershberger <mggmugginsmc@gmail.com>",
]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust library to access Redox users and groups functionality"
documentation = "https://docs.rs/redox_users"
readme = "README.md"
keywords = [
"redox",
"auth",
]
license = "MIT"
repository = "https://gitlab.redox-os.org/redox-os/users"
[lib]
name = "redox_users"
path = "src/lib.rs"
[dependencies.getrandom]
version = "0.2"
features = ["std"]
[dependencies.libredox]
version = "0.1.3"
features = [
"std",
"call",
]
default-features = false
[dependencies.rust-argon2]
version = "0.8"
optional = true
[dependencies.thiserror]
version = "1.0"
[dependencies.zeroize]
version = "1.4"
features = ["zeroize_derive"]
optional = true
[features]
auth = [
"rust-argon2",
"zeroize",
]
default = ["auth"]

22
vendor/redox_users/LICENSE vendored Normal file
View File

@@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2017 Jose Narvaez
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

23
vendor/redox_users/README.md vendored Normal file
View File

@@ -0,0 +1,23 @@
# redox_users <a href="https://crates.io/crates/redox_users"><img src="https://img.shields.io/crates/v/redox_users.svg"></a>
Redox OS APIs for accessing users and groups information. [Documentation](https://docs.rs/redox_users/0.1.0/redox_users/)
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:
```Rust
Argon2::new(10, 1, 4096, Variant::Argon2i)
```

1702
vendor/redox_users/src/lib.rs vendored Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@@ -0,0 +1 @@
{"name":"redox_users","vers":"0.4.6","deps":[{"name":"getrandom","req":"^0.2","features":["std"],"optional":false,"default_features":true,"target":null,"kind":"normal","registry":"https://github.com/rust-lang/crates.io-index","package":null,"public":null,"artifact":null,"bindep_target":null,"lib":false},{"name":"libredox","req":"^0.1.3","features":["std","call"],"optional":false,"default_features":false,"target":null,"kind":"normal","registry":"https://github.com/rust-lang/crates.io-index","package":null,"public":null,"artifact":null,"bindep_target":null,"lib":false},{"name":"rust-argon2","req":"^0.8","features":[],"optional":true,"default_features":true,"target":null,"kind":"normal","registry":"https://github.com/rust-lang/crates.io-index","package":null,"public":null,"artifact":null,"bindep_target":null,"lib":false},{"name":"thiserror","req":"^1.0","features":[],"optional":false,"default_features":true,"target":null,"kind":"normal","registry":"https://github.com/rust-lang/crates.io-index","package":null,"public":null,"artifact":null,"bindep_target":null,"lib":false},{"name":"zeroize","req":"^1.4","features":["zeroize_derive"],"optional":true,"default_features":true,"target":null,"kind":"normal","registry":"https://github.com/rust-lang/crates.io-index","package":null,"public":null,"artifact":null,"bindep_target":null,"lib":false}],"features":{"auth":["rust-argon2","zeroize"],"default":["auth"]},"features2":null,"cksum":"795781612f8f628e33c6f61fbccdb8f32c82cda32f1eab22fb34074787b53a3c","yanked":null,"links":null,"rust_version":null,"v":2}

4
vendor/redox_users/tests/etc/group vendored Normal file
View File

@@ -0,0 +1,4 @@
root;x;0;root
user;x;1000;user
wheel;x;1;user,root
loip;x;1007;loip

3
vendor/redox_users/tests/etc/passwd vendored Normal file
View File

@@ -0,0 +1,3 @@
root;0;0;root;file:/root;file:/bin/ion
user;1000;1000;user;file:/home/user;file:/bin/ion
loip;1007;1007;Lorem;file:/home/lorem;file:/bin/ion

3
vendor/redox_users/tests/etc/shadow vendored Normal file
View File

@@ -0,0 +1,3 @@
root;$argon2i$m=4096,t=10,p=1$Tnc4UVV0N00$ML9LIOujd3nmAfkAwEcSTMPqakWUF0OUiLWrIy0nGLk
user;
loip;!