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

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

#5 in #possibly

Download history 988/week @ 2023-12-14 526/week @ 2023-12-21 644/week @ 2023-12-28 1100/week @ 2024-01-04 1202/week @ 2024-01-11 1417/week @ 2024-01-18 1277/week @ 2024-01-25 1336/week @ 2024-02-01 1417/week @ 2024-02-08 1306/week @ 2024-02-15 1187/week @ 2024-02-22 1365/week @ 2024-02-29 2076/week @ 2024-03-07 1598/week @ 2024-03-14 1439/week @ 2024-03-21 999/week @ 2024-03-28

6,407 downloads per month
Used in 9 crates (7 directly)

MIT/Apache

4KB
56 lines

Returns info about current user.

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

Dependencies

~29KB