File: README.md

package info (click to toggle)
rust-uname 0.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 108 kB
  • sloc: makefile: 4
file content (41 lines) | stat: -rw-r--r-- 1,429 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# rust-uname

Name and information about current kernel

## Dashboard

| Linux CI | Test Coverage | Crate | Documentation |
|:--------:|:-------------:|:-----:|:-------------:|
| [![Build Status](https://travis-ci.org/icorderi/rust-uname.svg?branch=master)](https://travis-ci.org/icorderi/rust-uname) | [![Coverage Status](https://coveralls.io/repos/icorderi/rust-uname/badge.svg?branch=master)](https://coveralls.io/r/icorderi/rust-uname?branch=master) | [![Crate](http://meritbadge.herokuapp.com/uname)](https://crates.io/crates/uname) | [![Docs](https://img.shields.io/badge/docs-up--to--date-blue.svg)](https://icorderi.github.io/rust-uname/index.html)

## Basic usage

```rust
extern crate uname;

use uname::uname;

fn main() {
    let info = uname().unwrap();

    // Print the hostname
    println!("{}", info.hostname);
    // Print everything
    println!("{:?}", info);
}
```

Don't forget to check out the [examples](./examples)

## License

Licensed under:

- Apache License, Version 2.0 - [LICENSE-APACHE](LICENSE-APACHE) ([source](http://www.apache.org/licenses/LICENSE-2.0))
- MIT license - ([LICENSE-MIT](LICENSE-MIT) ([source](http://opensource.org/licenses/MIT))

## Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
additional terms or conditions.