[package]
name = "batlimit"
version = "0.10.21"
edition = "2024"
authors = ["github.com/pepa65 <pepa65@passchier.net>"]
description = "Set battery charge limit on supported laptops on Linux with CLI"
repository = "https://github.com/pepa65/batlimit"
documentation = "https://docs.rs/batlimit"
readme = "README.md"
license = "GPL-3.0-or-later"
keywords = ["laptop", "battery", "charge", "charge-limit", "persist"]
categories = ["command-line-utilities"]
[package.metadata.binstall]
pkg-url = "{repo}/releases/download/{version}/batlimit"
pkg-fmt = "bin"
target = "x86_64-unknown-linux-musl"
disabled-strategies = ["quick-install", "compile"]
target-family = "Linux"
target-arch = "X86_64"
[dependencies]
anyhow = "1.0.95"
clap = { version = "4.5.26", features = ["derive"] }
clap_complete = "4.5.42"
regex = "1.11.1"
text-template = "0.1.0"
[lints.clippy]
unnecessary_unwrap = "allow"
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = "symbols"