# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.69" name = "starship-battery" version = "0.10.0" authors = ["Starship Contributors"] build = "build.rs" autobins = false autoexamples = false autotests = false autobenches = false description = "Cross-platform information about the notebook batteries" readme = "README.md" keywords = [ "battery", "linux", "macos", "windows", "freebsd", ] categories = ["os"] license = "ISC" repository = "https://github.com/starship/rust-battery" [lib] name = "starship_battery" path = "src/lib.rs" [[example]] name = "all" path = "examples/all.rs" [[example]] name = "oneshot" path = "examples/oneshot.rs" [[example]] name = "simple" path = "examples/simple.rs" [dependencies.cfg-if] version = "1.0" [dependencies.num-traits] version = "0.2.19" default-features = false [dependencies.schemars] version = "0.8.21" optional = true [dependencies.serde] version = "1.0.209" features = ["derive"] optional = true [dependencies.uom] version = "0.36" features = [ "autoconvert", "f32", "si", ] [dev-dependencies.approx] version = "0.5.1" [dev-dependencies.tempfile] version = "^3.12.0" [features] config-schema = [ "schemars", "serde", ] [target.'cfg(any(target_os = "dragonfly", target_os = "freebsd"))'.dependencies.libc] version = "~0.2.158" [target.'cfg(any(target_os = "dragonfly", target_os = "freebsd"))'.dependencies.nix] version = "~0.29.0" features = ["ioctl"] default-features = false [target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.core-foundation] version = "~0.10.0" [target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.libc] version = "^0.2.158" [target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.mach] version = "^0.4.2" package = "mach2" [target.'cfg(target_os = "linux")'.dependencies.lazycell] version = "~1.3" [target.'cfg(target_os = "netbsd")'.dependencies.libc] version = "~0.2.158" [target.'cfg(target_os = "netbsd")'.dependencies.nix] version = "~0.29.0" features = [ "ioctl", "mman", ] default-features = false [target.'cfg(target_os = "netbsd")'.dependencies.plist] version = "~1.7.0" [target.'cfg(target_os = "windows")'.dependencies.windows-sys] version = "0.59.0" features = [ "Win32_Devices", "Win32_Devices_DeviceAndDriverInstallation", "Win32_Foundation", "Win32_Security", "Win32_Storage", "Win32_Storage_FileSystem", "Win32_System", "Win32_System_IO", "Win32_System_Memory", "Win32_System_Power", ]