#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

#1 in #hostname

Download history 4840/week @ 2018-12-20 4247/week @ 2018-12-27 9027/week @ 2019-01-03 9678/week @ 2019-01-10 8153/week @ 2019-01-17 7860/week @ 2019-01-24 9185/week @ 2019-01-31 9649/week @ 2019-02-07 10638/week @ 2019-02-14 11324/week @ 2019-02-21 12683/week @ 2019-02-28 13506/week @ 2019-03-07 14150/week @ 2019-03-14 13715/week @ 2019-03-21 14865/week @ 2019-03-28

12,078 downloads per month
Used in 195 crates (39 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

~524KB