From 17f97409af53342a5ca7539b08318973b1030185 Mon Sep 17 00:00:00 2001 From: Hauke Jung Date: Thu, 21 Dec 2023 23:51:03 +0100 Subject: [PATCH] Move cli util to bin --- Cargo.toml | 3 ++- {src => bin}/main.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) rename {src => bin}/main.rs (98%) diff --git a/Cargo.toml b/Cargo.toml index 1b334fa..42f14f9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ keywords = ["scd40", "scd41", "sensirion", "driver", "embedded-hal-driver"] categories = ["embedded", "no-std"] readme = "README.md" edition = "2018" +default-run = "scd4x-util" [features] scd41 = [] @@ -36,5 +37,5 @@ embedded-hal-mock = "0.8" [[bin]] name = "scd4x-util" -path = "src/main.rs" +path = "bin/main.rs" required-features = ["util"] diff --git a/src/main.rs b/bin/main.rs similarity index 98% rename from src/main.rs rename to bin/main.rs index 3e322ea..56c9a40 100644 --- a/src/main.rs +++ b/bin/main.rs @@ -5,7 +5,7 @@ use linux_embedded_hal as hal; use log::{debug, info, error}; use structopt::StructOpt; -use humantime::{Duration as HumanDuration}; +use humantime::Duration as HumanDuration; use simplelog::{TermLogger, LevelFilter}; use scd4x::{Scd4x, Error};