102 Commits

Author SHA1 Message Date
Ben S 439f3c4cce 0.5.1: Missing method for mock groups v0.5.1 2016-02-10 15:19:23 +00:00
Ben S 901b1ccee7 Bump to version 0.5.0 v0.5.0 2016-01-29 14:23:11 +00:00
Ben S ac85727588 Merge branch 'polachok-all-users' 2016-01-29 13:52:20 +00:00
Ben S 0d9a3911fd Add docs and fix warnings 2016-01-29 13:52:13 +00:00
Ben S 941068b99c Add a full UsersCache constructor 2016-01-29 13:30:48 +00:00
Ben S 5c52889e09 Merge branch 'all-users' of https://github.com/polachok/rust-users into polachok-all-users
# Conflicts:
#	src/lib.rs

I put the users iterator functionality into the 'base' module, where it belongs now (but didn't when the code was written)
2016-01-29 11:20:07 +00:00
Ben S 3e1a0b50d7 Add extra Debug info to alternate fmts 2016-01-29 10:38:16 +00:00
Ben S 32d340e128 Add Debug impls 2016-01-28 17:15:27 +00:00
Ben S 54d53c82b2 Merge branch 'graft' 2016-01-28 16:07:01 +00:00
Ben S d65d2180d9 Add change and expire accessors 2016-01-28 16:06:54 +00:00
Ben S d602c1a6d5 Update the readme's examples to match 2016-01-28 15:56:55 +00:00
Ben S e1f906d97c Add missing lints and documentation 2016-01-28 15:52:53 +00:00
Ben S cb2919660b Remove unused imports 2016-01-28 15:40:53 +00:00
Ben S b5c4d07f6b Replace group fields with accessors, too
This does the same thing: it hides the fact that a group's name is actually within an Arc.
2016-01-28 15:39:04 +00:00
Ben S b6ef295697 Make group members OS-dependent 2016-01-28 15:27:36 +00:00
Ben S fefddc4a76 Replace User fields with getters
The name() accessor is able to hide the fact that the user's actual name string is hidden in an Arc. (The Arc is still available, since it's needed for caching)
2016-01-28 15:04:22 +00:00
Ben S 305b37e8c2 Ignore breaking test on Linux 2016-01-28 14:13:25 +00:00
Ben S 107e0aee7b Add example that makes sure it works everywhere 2016-01-28 14:07:31 +00:00
Ben S 56e5e17bf4 Add missing impl for BSD extras 2016-01-28 14:07:18 +00:00
Ben S 1c7d73c01c Move *all* the OS functionality inside modules 2016-01-28 13:07:15 +00:00
Ben S d5a02504db Have Users work with its OS-dependent fields
Everything relating to home directories and shell paths are now done in the UserExtras struct instead.

I moved the OS module into the base module (and re-exported it in lib) because it's a "sub"-module of base—it can't work without the structs in base.
2016-01-28 08:52:13 +00:00
Ben S 361bf319eb Result -> IOResult 2016-01-27 19:44:41 +00:00
Ben S 5ac78b90f3 Expand doc comments in switch module 2016-01-27 19:44:12 +00:00
Ben S 8cfb4a0858 At least parse the switch_user_group test
It won't run, but it can at least be analysed to see if it works!
2016-01-27 19:41:17 +00:00
Ben S ce47457bba Improve unreachable error messages 2016-01-27 19:39:19 +00:00