#laptop #devices #checking #platform #linux

is-laptop

A rust crate for checking if the device is a laptop or not

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

MIT/Apache

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

at your option.

Dependencies

~0–35MB
~528K SLoC