ogham / rust-users

Library for Unix users and groups in Rust.
https://crates.io/crates/users
MIT License
99 stars 37 forks source link

add iOS support #46

Closed Absolucy closed 3 years ago

Absolucy commented 3 years ago

It is almost always perfectly safe to assume that any code to applies to macOS also applies to iOS, they share the same kernel and most of the headers (especially unix/posix headers) are identical.

All tests pass. image

sunflsks commented 3 years ago

@ogham, what do you think? This patch seems to work fine, and it would help fix a lot of nasty hacks I need to use to get some rust projects compiling on iOS :)

Absolucy commented 3 years ago

this is probably never going to be merged, so I'm just going to close this...

feel free to re-use my code.