#running #current-thread #information #future #version

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

#1772 in Asynchronous

Download history 1886/week @ 2025-07-30 1674/week @ 2025-08-06 2140/week @ 2025-08-13 2303/week @ 2025-08-20 2756/week @ 2025-08-27 1774/week @ 2025-09-03 2394/week @ 2025-09-10 2721/week @ 2025-09-17 2325/week @ 2025-09-24 2961/week @ 2025-10-01 2629/week @ 2025-10-08 3716/week @ 2025-10-15 2970/week @ 2025-10-22 2889/week @ 2025-10-29 2078/week @ 2025-11-05 2178/week @ 2025-11-12

10,527 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