Skip to content

Commit

Permalink
Try to get documentation to build on docs.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
jgosmann committed May 4, 2021
1 parent 66836da commit 30b3164
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.1.1] - 2021-05-04

Try to get documentation to build on docs.rs.


## [0.1.0] - 2021-05-04

Initial release.


[Unreleased]: https://github.com/jgosmann/bsec/compare/v0.1.0...HEAD
[Unreleased]: https://github.com/jgosmann/bsec/compare/v0.1.1...HEAD
[0.1.1]: https://github.com/jgosmann/bsec/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/jgosmann/bsec/releases/tag/v0.1.0
7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bsec"
version = "0.1.0"
version = "0.1.1"
authors = ["Jan Gosmann <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand All @@ -24,8 +24,9 @@ embedded-hal = "0.2.5"
serial_test = "0.5.1"

[features]
use-bme680 = ["bme680", "embedded-hal"]
docs-rs = []
test-support = []
use-bme680 = ["bme680", "embedded-hal"]

[package.metadata.docs.rs]
features = ["use-bme680"]
features = ["docs-rs", "test-support", "use-bme680"]
1 change: 1 addition & 0 deletions src/bme.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Interface to BME sensors to read physical measurements.
use super::Input;
#[cfg(not(feature = "docs.rs"))]
use libalgobsec_sys::bsec_bme_settings_t;
use std::{fmt::Debug, time::Duration};

Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
use crate::bme::{BmeSensor, BmeSettingsHandle};
use crate::clock::Clock;
use crate::error::{BsecError, ConversionError, Error};
#[cfg(not(feature = "docs.rs"))]
use libalgobsec_sys::*;
use std::borrow::Borrow;
use std::convert::{From, TryFrom, TryInto};
Expand Down

0 comments on commit 30b3164

Please sign in to comment.