#hostname

hostname

Get hostname. Compatible with windows and linux, redox.

6 releases

0.1.5 May 25, 2018
0.1.4 Dec 19, 2017
0.1.3 Feb 9, 2017
0.1.2 Dec 13, 2016

#7 in Operating systems

Download history 5558/week @ 2018-10-17 7252/week @ 2018-10-24 5959/week @ 2018-10-31 6251/week @ 2018-11-07 7014/week @ 2018-11-14 6261/week @ 2018-11-21 6216/week @ 2018-11-28 7488/week @ 2018-12-05 8311/week @ 2018-12-12 5329/week @ 2018-12-19 3913/week @ 2018-12-26 7650/week @ 2019-01-02 10583/week @ 2019-01-09 8284/week @ 2019-01-16 7903/week @ 2019-01-23

12,078 downloads per month
Used in 164 crates (37 directly)

MIT license

4KB

hostname

docs

Get hostname. Compatible with windows and unix.

Document

Usage

Add dependency to Cargo.toml

[dependencies]
hostname = "^0.1"

In your main.rs or lib.rs:

extern crate hostname;

Examples

use hostname::get_hostname;

assert!(get_hostname().is_some());

License

hostname is primarily distributed under the terms of the MIT license. See LICENSE for details.


lib.rs:

Get hostname. Compatible with windows and linux.

Examples

extern crate hostname;

assert!(hostname::get_hostname().is_some());

Dependencies

~518KB