33 lines
341 B
Markdown
33 lines
341 B
Markdown
# linux_battery
|
|
|
|
A battery parser using linux' `power_supply` class.
|
|
|
|
## Build
|
|
|
|
### debug
|
|
|
|
```shell
|
|
cargo build
|
|
```
|
|
|
|
### release
|
|
|
|
```shell
|
|
cargo build --release
|
|
```
|
|
|
|
## Documentation
|
|
|
|
```shell
|
|
cargo doc
|
|
```
|
|
|
|
The built documentation can be found at `target/doc/`.
|
|
|
|
## Example
|
|
|
|
```shell
|
|
cargo build --example bat0
|
|
cargo run --example bat0
|
|
```
|