Debian Codegraph @

third_party/rust/whatsys/README.md

raw
1 # `whatsys` -- What's this?
2
3 [![Crates.io version](https://img.shields.io/crates/v/whatsys.svg?style=flat-square)](https://crates.io/crates/whatsys)
4 [![docs.rs docs](https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square)](https://docs.rs/whatsys)
5 [![License: MIT](https://img.shields.io/github/license/badboy/whatsys?style=flat-square)](LICENSE)
6 [![Build Status](https://img.shields.io/github/actions/workflow/status/badboy/whatsys/ci.yml?branch=main&style=flat-square)](https://github.com/badboy/whatsys/actions/workflows/ci.yml?query=workflow%3ACI)
7
8 What kernel version is running?
9
10 # Example
11
12 ```rust
13 let kernel = whatsys::kernel_version(); // E.g. Some("20.3.0")
14 ```
15
16 # Supported operating systems
17
18 We support the following operating systems:
19
20 * Windows
21 * macOS
22 * Linux
23 * Android
24
25 # License
26
27 MIT. See [LICENSE](LICENSE).
28
29 Based on:
30
31 * [sys-info](https://crates.io/crates/sys-info), [Repository](https://github.com/FillZpp/sys-info-rs), [MIT LICENSE][sys-info-mit]
32 * [sysinfo](https://crates.io/crates/sysinfo), [Repository](https://github.com/GuillaumeGomez/sysinfo), [MIT LICENSE][sysinfo-mit]
33
34 [sys-info-mit]: https://github.com/FillZpp/sys-info-rs/blob/master/LICENSE
35 [sysinfo-mit]: https://github.com/GuillaumeGomez/sysinfo/blob/master/LICENSE