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

username

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

1 unstable release

Uses old Rust 2015

0.2.0 Sep 13, 2017

#28 in #versions

Download history 1237/week @ 2024-07-19 1131/week @ 2024-07-26 919/week @ 2024-08-02 800/week @ 2024-08-09 883/week @ 2024-08-16 633/week @ 2024-08-23 805/week @ 2024-08-30 1295/week @ 2024-09-06 1111/week @ 2024-09-13 1046/week @ 2024-09-20 842/week @ 2024-09-27 867/week @ 2024-10-04 658/week @ 2024-10-11 1036/week @ 2024-10-18 660/week @ 2024-10-25 498/week @ 2024-11-01

3,011 downloads per month
Used in 10 crates (8 directly)

MIT/Apache

4KB
56 lines

Returns info about current user.

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

Dependencies

~29KB