Skip to content

redox-os/hostname

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hostname

docs

Get hostname. Compatible with windows and unix.

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.

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%