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

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

#36 in #retrieve

Download history 1700/week @ 2024-03-17 877/week @ 2024-03-24 1758/week @ 2024-03-31 1475/week @ 2024-04-07 1744/week @ 2024-04-14 1880/week @ 2024-04-21 2349/week @ 2024-04-28 1704/week @ 2024-05-05 1864/week @ 2024-05-12 2376/week @ 2024-05-19 1380/week @ 2024-05-26 1254/week @ 2024-06-02 1255/week @ 2024-06-09 1531/week @ 2024-06-16 695/week @ 2024-06-23 292/week @ 2024-06-30

3,835 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