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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//! What kernel version is running?
//!
//! # Example
//!
//! ```
//! let kernel = whatsys::kernel_version(); // E.g. Some("20.3.0")
//! ```
//!
//! # Supported operating systems
//!
//! We support the following operating systems:
//!
//! * Windows
//! * macOS
//! * Linux
//! * Android
//!
//! # License
//!
//! MIT. Copyright (c) 2021 Jan-Erik Rediger
//!
//! Based on:
//!
//! * [sys-info](https://crates.io/crates/sys-info), [Repository](https://github.com/FillZpp/sys-info-rs), [MIT LICENSE][sys-info-mit]
//! * [sysinfo](https://crates.io/crates/sysinfo), [Repository](https://github.com/GuillaumeGomez/sysinfo), [MIT LICENSE][sysinfo-mit]
//!
//! [sys-info-mit]: https://github.com/FillZpp/sys-info-rs/blob/master/LICENSE
//! [sysinfo-mit]: https://github.com/GuillaumeGomez/sysinfo/blob/master/LICENSE
cfg_if!
pub use kernel_version;