-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
Cargo.toml
42 lines (35 loc) · 1.39 KB
/
Cargo.toml
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
[package]
name = "battery"
version = "0.7.8" # remember to update html_root_url
authors = ["svartalf <self@svartalf.info>"]
edition = "2018"
description = "Cross-platform information about the notebook batteries"
repository = "https://github.com/svartalf/rust-battery"
readme = "README.md"
categories = ["os"]
keywords = ["battery", "linux", "macos", "windows", "freebsd"]
license = "Apache-2.0 OR MIT"
build = "build.rs"
[badges]
travis-ci = { repository = "svartalf/rust-battery", branch = "master" }
maintenance = { status = "actively-developed" }
is-it-maintained-issue-resolution = { repository = "svartalf/rust-battery" }
is-it-maintained-open-issues = { repository = "svartalf/rust-battery" }
[dependencies]
cfg-if = "1.0"
num-traits = { version = "0.2", default_features = false }
uom = { version = "0.30", features = ["autoconvert", "f32", "si"] }
[target.'cfg(target_os = "linux")'.dependencies]
lazycell = "~1.3"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
libc = "^0.2"
mach = "^0.3"
core-foundation = "~0.7"
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version ="~0.3", features = ["impl-default", "devguid", "winbase", "ioapiset", "ntdef", "setupapi", "handleapi", "errhandlingapi", "winerror"] }
[target.'cfg(any(target_os = "dragonfly", target_os = "freebsd"))'.dependencies]
libc = "~0.2"
nix = "~0.23"
[dev-dependencies]
tempfile = "^3.0"
approx = "0.3.2"