#thread #running #user-name #information #version #retrieve #possibly

user

Portably retrieve the user name (and possibly other information in future versions) of the user running the current thread

2 releases

Uses old Rust 2015

0.1.1 Jul 22, 2016
0.1.0 Jan 10, 2016

#6 in #possibly

Download history 4/week @ 2024-09-18 17/week @ 2024-09-25 6/week @ 2024-10-02 5/week @ 2024-10-30 1/week @ 2024-11-06 3/week @ 2024-11-20 24/week @ 2024-11-27 18/week @ 2024-12-04 58/week @ 2024-12-11 10/week @ 2024-12-18

87 downloads per month
Used in 2 crates (via thrussh_client)

MIT/Apache

3KB
56 lines

Returns info about current user.

println!("{}",user::get_user_name().unwrap())

Dependencies

~185KB