diff --git a/Cargo.toml b/Cargo.toml index 9745310..45b282b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -66,6 +66,9 @@ serde = ["dep:serde"] #/// Adds otsu binarizer support using imageproc otsu_level = ["image"] +#/// Adds "client" features do decode many common data formats found in barcodes +client_support = [] + [workspace] members = [ "crates/one-d-proc-derive", diff --git a/src/lib.rs b/src/lib.rs index ffecd3f..d6675e2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,12 +2,15 @@ #![allow(non_camel_case_types)] pub mod aztec; -pub mod client; + pub mod common; mod exceptions; pub mod maxicode; pub mod qrcode; +#[cfg(feature = "client_support")] +pub mod client; + use std::{collections::HashMap, rc::Rc}; pub use exceptions::Exceptions;