diff --git a/Cargo.toml b/Cargo.toml index cea457b..f3347b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,7 +55,7 @@ math = [] log = [] bintols = [] net = [] -bin = ["bintols", "math", "dep:clap", "dep:clap-num", "dep:clap-verbosity-flag"] +bin = ["dep:clap", "dep:clap-num", "dep:clap-verbosity-flag"] [lib] name = "libpt" @@ -68,10 +68,12 @@ crate-type = [ [[bin]] name = "ccc" path = "src/ccc/mod.rs" +required-features = ["bin", "math"] [[bin]] name = "hedu" path = "src/hedu/mod.rs" +required-features = ["bin", "bintols"] [dependencies] diff --git a/members/libpt-bintols/src/hedu/mod.rs b/members/libpt-bintols/src/hedu/mod.rs index aab45f2..686dba8 100644 --- a/members/libpt-bintols/src/hedu/mod.rs +++ b/members/libpt-bintols/src/hedu/mod.rs @@ -6,7 +6,7 @@ //! This crate is currently empty. use anyhow::{bail, Result}; -use libpt_bintols::display::{bytes_to_bin, humanbytes}; +use crate::display::{bytes_to_bin, humanbytes}; use libpt_log::{debug, error, info, trace, warn}; use std::io::{prelude::*, BufReader, Read, SeekFrom}; diff --git a/members/libpt-bintols/src/lib.rs b/members/libpt-bintols/src/lib.rs index ca13f78..36aa2bb 100644 --- a/members/libpt-bintols/src/lib.rs +++ b/members/libpt-bintols/src/lib.rs @@ -25,3 +25,4 @@ pub const YOBI: u128 = 2u128.pow(80); // use libpt_core; pub mod datalayout; pub mod display; +pub mod hedu; diff --git a/members/libpt-math/src/ccc/mod.rs b/members/libpt-math/src/ccc/mod.rs index 3b538a6..84efe1f 100644 --- a/members/libpt-math/src/ccc/mod.rs +++ b/members/libpt-math/src/ccc/mod.rs @@ -19,8 +19,6 @@ #![warn(clippy::pedantic)] //// IMPORTS /////////////////////////////////////////////////////////////////////////////////////// -use libpt_log; -use libpt_math; //// TYPES ///////////////////////////////////////////////////////////////////////////////////////// diff --git a/members/libpt-math/src/lib.rs b/members/libpt-math/src/lib.rs index c93077f..dbafa06 100644 --- a/members/libpt-math/src/lib.rs +++ b/members/libpt-math/src/lib.rs @@ -15,6 +15,7 @@ #![warn(clippy::pedantic)] //// IMPORTS /////////////////////////////////////////////////////////////////////////////////////// +pub mod ccc; //// TYPES ///////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/hedu/mod.rs b/src/hedu/mod.rs index 91fe487..5010a7b 100644 --- a/src/hedu/mod.rs +++ b/src/hedu/mod.rs @@ -13,7 +13,7 @@ //// IMPORTS /////////////////////////////////////////////////////////////////////////////////////// -use libpt::{hedu::*, log::*}; +use libpt::{log::*, bintols::hedu::*}; use clap::Parser; use clap_verbosity_flag::{InfoLevel, Verbosity}; @@ -88,6 +88,11 @@ pub struct Cli { /// If left empty or set as "-", the program will read from stdin. pub data_source: Option, } +impl Cli { + fn parse() -> Cli { + todo!() + } +} //// IMPLEMENTATION //////////////////////////////////////////////////////////////////////////////// diff --git a/src/lib.rs b/src/lib.rs index 1390701..8899a30 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,8 +12,6 @@ pub use libpt_bintols as bintols; pub use libpt_ccc as ccc; #[cfg(feature = "core")] pub use libpt_core as core; -#[cfg(feature = "hedu")] -pub use libpt_hedu as hedu; #[cfg(feature = "log")] pub use libpt_log as log; #[cfg(feature = "math")]