From 8ec7fb3f7593d2e0b5ee58572e43a924b61e92f3 Mon Sep 17 00:00:00 2001 From: Hauke Jung Date: Sun, 18 Feb 2024 16:02:49 +0100 Subject: [PATCH] linux-embedded-hal shouldnt be a default dependancy Fixes #10 --- Cargo.toml | 2 +- README.md | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 42f14f9..55f32ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ default-run = "scd4x-util" [features] scd41 = [] util = [ "structopt", "simplelog", "humantime", "linux-embedded-hal", "anyhow" ] -default = [ "util" ] +default = [] [dependencies] sensirion-i2c = "0.1" diff --git a/README.md b/README.md index 13b7df7..916b6fd 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,11 @@ Further information: [Datasheet CO2 Sensor SCD4x](https://www.sensirion.com/file ## Usage +Run scd4x-util to read the serial number and the measurement output. +```bash +cargo run --features="util" +``` + See an example using `linux-embedded-hal` in `examples/linux.rs`. ```bash cargo run --example linux