[go: up one dir, main page]

hostname 0.1.3

Get hostname. Compatible with windows and linux.
Documentation

hostname
===
[![docs](https://docs.rs/hostname/badge.svg?version=0.1.2 "docs")](https://docs.rs/hostname)

Get hostname. Compatible with windows and unix.

## [Document]https://docs.rs/hostname

## Usage
Add dependency to Cargo.toml

```toml
[dependencies]
hostname = "^0.1"
```

In your `main.rs` or `lib.rs`:

```rust
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](LICENSE) for details.