From 1a40a64097ba4d9369664d9da36ca921a833269f Mon Sep 17 00:00:00 2001 From: Henry Schimke Date: Sun, 31 Dec 2023 13:30:35 -0600 Subject: [PATCH] feat: move client decode library into a feature breaking change: Client features must be be built specificially and are not included by default. --- Cargo.toml | 3 +++ src/lib.rs | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) 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;