Docs.rs
whoami-0.3.0
whoami 0.3.0
Docs.rs crate page
MIT / BSL-1.0
Links
Homepage
Documentation
Repository
Crates.io
Source
Owners
AldaronLau
github:ardaku:cala
Dependencies
libc ^0.2
normal
term ^0.5
normal
Versions
100%
of the crate is documented
Go to latest version
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
Crate whoami
Version 0.3.0
All Items
Enums
Functions
?
Crate
whoami
source
·
[
−
]
Expand description
Crate for getting the user’s username and realname.
Enums
DesktopEnv
Which Desktop Environment
Functions
env
Get the desktop environment.
host
Get the host device’s (pretty) name.
hostname
Get the host device’s hostname.
os
Get the the operating system name and version.
user
Get the user’s full name.
username
Get the user’s username.