7 unstable releases
0.4.3 | Jan 22, 2024 |
---|---|
0.4.2 | Apr 2, 2023 |
0.4.1 | Jan 16, 2023 |
0.4.0 | Jun 13, 2022 |
0.1.0 | Jun 8, 2022 |
#412 in Hardware support
25 downloads per month
9KB
97 lines
is-laptop
A rust crate for checking if the device is a laptop or not.
Supported platforms
- Windows
- Linux
Usage
Add the crate to your dependencies:
[dependencies]
is-laptop = "*"
Check if the device is a laptop
let laptop: bool = is_laptop::check();
License
Licensed under either of
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
at your option.
Dependencies
~0–35MB
~528K SLoC