- 01 Jan, 2021 1 commit
-
-
SamwiseFilmore authored
Breaks API again, but only for errors (I believe... return types have become more specific, not less);
-
- 31 Dec, 2020 7 commits
-
-
SamwiseFilmore authored
0.4 See merge request !35
-
SamwiseFilmore authored
See the previous commit for caveats on this release. More info in the tag.
-
SamwiseFilmore authored
Several peripheral API changes here ramping up to the 0.4.0 release. - The `All::remove_by_*` functions now return booleans indicating if the gruser was removed or not. - User and Group no longer implement display for use in passwd/shadow file serialization; the implementations have moved to private functions. - Parse errors now return a line number (only the line number! Don't leak the file contents). - Invalid lines are no longer ignored during passwd/group file parsing. This has potential to cause breakage but I'd estimate that to be a pretty small risk. It does now report any parse errors.
-
SamwiseFilmore authored
-
SamwiseFilmore authored
-
SamwiseFilmore authored
-
SamwiseFilmore authored
Essentially just make the tests pass. Enabling locks on linux causes deadlocks in the tests (even when running single-threaded?), so I need to look at that some more. This also includes a couple of documentation combing things, there will be another commit to follow this up.
-
- 06 Sep, 2020 1 commit
-
-
SamwiseFilmore authored
This compiles, but I think the tests are deadlocking somehow, even with an unlock being called explicitly in the AllGroups drop. More work is needed to make this work.
-
- 05 Sep, 2020 3 commits
-
-
SamwiseFilmore authored
Uhg.
-
SamwiseFilmore authored
- `FromStr` is no longer used for /etc/group parsing - All the structs in this crate will debug print correctly - Trailing whitespace/empty user lists for /etc/group entries are now parsed correctly. Tests added for those cases as well.
-
SamwiseFilmore authored
I never liked how I had to pass around a bool and ensure that the user had used the API correctly and panic if they hadn't. This commit adds a marker type to `User` and `AllUsers` that ensures that a user of the library cannot use authentication and other password related methods unless they've instantiated the user with authentication information. Got rid of the tests that ensured panics for incorrect usage of the API; incorrect API use is a compile-time error now. I removed `FromStr` for `User` and added it as a private method, later commits will do the same for `Group` and possibly transition away from `Display`. Documentation in the works.
-
- 26 Aug, 2020 3 commits
-
-
SamwiseFilmore authored
-
SamwiseFilmore authored
Resolves #26. Since dirs is a reverse dependency of this crate and is used an awful lot, it's nice to have as small a dependency footprint as possible. dirs doesn't need the authentication stuff so we can drop a large number of deps. I imagine this will probably be useful in other contexts as well.
-
SamwiseFilmore authored
Bump rust-argon2 dependency Closes #30 See merge request !34
-
- 26 Mar, 2020 1 commit
-
-
Nikhil Benesch authored
-
- 22 Jan, 2020 3 commits
-
-
Jeremy Soller authored
-
Jeremy Soller authored
Bump rust-argon2 dependency to 0.7 See merge request !33
-
Alex Gaynor authored
-
- 20 Jan, 2020 5 commits
-
-
Jeremy Soller authored
-
Alex Gaynor authored
-
Jeremy Soller authored
-
Jeremy Soller authored
-
Jeremy Soller authored
Switch from rand_os crate to getrandom See merge request !32
-
- 01 Jan, 2020 1 commit
-
-
Alex Gaynor authored
This extracts part of !30 into it's own PR. getrandom has a smaller dependency footprint, and the version of rand_os being used was quite out of date.
-
- 01 Sep, 2019 3 commits
-
-
Blaž Hrastnik authored
-
Blaž Hrastnik authored
-
Blaž Hrastnik authored
-
- 07 Aug, 2019 2 commits
-
-
Jeremy Soller authored
-
Jeremy Soller authored
-
- 05 Feb, 2019 5 commits
-
-
SamwiseFilmore authored
v3.0 See merge request !26
-
SamwiseFilmore authored
I think we're ready to merge, I'm happy with the state of the code and the state of the docs. I'd like to majorly refactor before a 1.0.0 release, but this is just fine for now.
-
Jeremy Soller authored
Replace rand 0.5 with rand_os 0.1 See merge request !27
-
SamwiseFilmore authored
-
SamwiseFilmore authored
-
- 04 Feb, 2019 2 commits
-
-
Robin Krahl authored
redox_users only uses the OsRng struct which has been moved to the rand_os crate.
-
SamwiseFilmore authored
Basically takes advantage of the configuration struct. The tests still fail and I still don't know why.
-
- 03 Feb, 2019 1 commit
-
-
SamwiseFilmore authored
For some reason that I cannot ascertain, two tests still fail. I have examined values basically everywhere and cannot figure it out. User and Group get Debug now though.
-
- 02 Feb, 2019 2 commits
-
-
SamwiseFilmore authored
The tests still don't pass, but this is a big step. Solves #23.
-
SamwiseFilmore authored
-