Skip to content

Commit

Permalink
Merge pull request #4 from saibatizoku/master
Browse files Browse the repository at this point in the history
Add 'led-matrix' feature to Cargo.toml
  • Loading branch information
thejpster authored Apr 6, 2018
2 parents c3e2a8d + 2c5cdee commit f07a2e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ measurements = "0.10.2"
i2cdev = "0.4.0"
byteorder = "1.0"
libc = { version = "0.2", optional = true }
sensehat-screen = { version = "0.1", optional = true }

[build-dependencies]
gcc = "0.3"
Expand All @@ -23,6 +24,7 @@ gcc = "0.3"
# packages, but they are strictly optional.
default = ["rtimu"]
rtimu = [ "libc" ]
led-matrix = ["sensehat-screen"]

[package.metadata.docs.rs]
features = [ ]
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ extern crate measurements;
#[cfg(feature = "rtimu")]
extern crate libc;

#[cfg(feature = "led-matrix")]
extern crate sensehat_screen;

mod rh;
mod hts221;
mod lps25h;
Expand Down

0 comments on commit f07a2e6

Please sign in to comment.