#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

#33 in #versions

Download history 698/week @ 2024-11-15 814/week @ 2024-11-22 786/week @ 2024-11-29 843/week @ 2024-12-06 846/week @ 2024-12-13 373/week @ 2024-12-20 364/week @ 2024-12-27 550/week @ 2025-01-03 824/week @ 2025-01-10 672/week @ 2025-01-17 543/week @ 2025-01-24 435/week @ 2025-01-31 585/week @ 2025-02-07 642/week @ 2025-02-14 876/week @ 2025-02-21 487/week @ 2025-02-28

2,668 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