☰
Debian Codegraph
@
0.12.0-1
0.10.0-1
/
/
debian
/
rust-vendor
/
hostname
/
examples
/
hostname.rs
☽
☼
debian/rust-vendor/hostname/examples/hostname.rs
code
plain
raw
MIT
or
Apache-2.0
the respective crate authors
debian/copyright
1
//! Naive re-implementation of the Linux `hostname` program.
2
3
use std::io;
4
5
fn main() -> io::Result<()> {
6
let name = hostname::get()?;
7
8
println!("{}", name.to_string_lossy());
9
10
Ok(())
11
}