Skip to content

Commit

Permalink
Release 0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
svartalf committed May 21, 2019
1 parent 856eeaf commit fd29695
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
## [0.7.2] - 2019-05-21
### Fixed
- `Battery::state_of_health` and `Battery::state_of_charge` are always returning values in `0.0 ≤ x ≤ 1.0` interval

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Latest Version](https://img.shields.io/crates/v/battery.svg)](https://crates.io/crates/battery)
[![Latest Version](https://docs.rs/battery/badge.svg)](https://docs.rs/battery)
[![Build Status](https://travis-ci.org/svartalf/rust-battery.svg?branch=master)](https://travis-ci.org/svartalf/rust-battery)
[![dependency status](https://deps.rs/crate/battery/0.7.1/status.svg)](https://deps.rs/crate/battery/0.7.1)
[![dependency status](https://deps.rs/crate/battery/0.7.2/status.svg)](https://deps.rs/crate/battery/0.7.2)
![Apache 2.0 OR MIT licensed](https://img.shields.io/badge/license-Apache2.0%2FMIT-blue.svg)
[![backers](https://opencollective.com/rust-battery/tiers/backer/badge.svg?label=backer&color=brightgreen)](https://opencollective.com/rust-battery)

Expand Down
2 changes: 1 addition & 1 deletion battery-ffi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "battery-ffi"
version = "0.7.1"
version = "0.7.2" # remember to update html_root_url
authors = ["svartalf <[email protected]>"]
edition = "2018"
description = "FFI bindings for battery crate"
Expand Down
2 changes: 1 addition & 1 deletion battery-ffi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Latest Version](https://img.shields.io/crates/v/battery-ffi.svg)](https://crates.io/crates/battery-ffi)
[![Latest Version](https://docs.rs/battery-ffi/badge.svg)](https://docs.rs/battery-ffi)
[![Build Status](https://travis-ci.org/svartalf/rust-battery.svg?branch=master)](https://travis-ci.org/svartalf/rust-battery)
[![dependency status](https://deps.rs/crate/battery-ffi/0.7.1/status.svg)](https://deps.rs/crate/battery-ffi/0.7.1)
[![dependency status](https://deps.rs/crate/battery-ffi/0.7.2/status.svg)](https://deps.rs/crate/battery-ffi/0.7.2)
![Apache 2.0 OR MIT licensed](https://img.shields.io/badge/license-Apache2.0%2FMIT-blue.svg)
[![backers](https://opencollective.com/rust-battery/tiers/backer/badge.svg?label=backer&color=brightgreen)](https://opencollective.com/rust-battery)

Expand Down
2 changes: 2 additions & 0 deletions battery-ffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
//!
//! Also, check the `examples/` directory in the repository for examples with C and Python.
#![doc(html_root_url = "https://docs.rs/battery-ffi/0.7.2")]

// cbindgen==0.8.0 fails to export typedefs for opaque pointers
// from the battery crate, if this line is missing
extern crate battery as battery_lib;
Expand Down
6 changes: 3 additions & 3 deletions battery/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "battery"
version = "0.7.1"
version = "0.7.2" # remember to update html_root_url
authors = ["svartalf <[email protected]>"]
edition = "2018"
description = "Cross-platform information about batteries"
Expand All @@ -19,13 +19,13 @@ is-it-maintained-open-issues = { repository = "svartalf/rust-battery" }
[dependencies]
cfg-if = "0.1"
num-traits = { version = "0.2", default_features = false }
uom = { version = "0.22.1", features = ["autoconvert", "f32", "si"] }
uom = { version = "0.23.0", features = ["autoconvert", "f32", "si"] }

[target.'cfg(target_os = "linux")'.dependencies]
lazycell = "1.2.1"

[target.'cfg(target_os = "macos")'.dependencies]
libc = "0.2.51"
libc = "^0.2"
mach = "0.2.3"
core-foundation = "0.6.4"

Expand Down
1 change: 1 addition & 0 deletions battery/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#![deny(unused)]
#![deny(unstable_features)]
#![deny(bare_trait_objects)]
#![doc(html_root_url = "https://docs.rs/battery/0.7.2")]

#[macro_use]
extern crate cfg_if;
Expand Down

0 comments on commit fd29695

Please sign in to comment.