A crate with utilities to get and set the system’s host name.
Get the host name:
let name = hostname::get()?; println!("{:?}", name);
Return the system hostname.