feat: move client decode library into a feature

breaking change: Client features must be be built specificially and are not included by default.
This commit is contained in:
Henry Schimke
2023-12-31 13:30:35 -06:00
parent 84a54d420d
commit 1a40a64097
2 changed files with 7 additions and 1 deletions

View File

@@ -66,6 +66,9 @@ serde = ["dep:serde"]
#/// Adds otsu binarizer support using imageproc #/// Adds otsu binarizer support using imageproc
otsu_level = ["image"] otsu_level = ["image"]
#/// Adds "client" features do decode many common data formats found in barcodes
client_support = []
[workspace] [workspace]
members = [ members = [
"crates/one-d-proc-derive", "crates/one-d-proc-derive",

View File

@@ -2,12 +2,15 @@
#![allow(non_camel_case_types)] #![allow(non_camel_case_types)]
pub mod aztec; pub mod aztec;
pub mod client;
pub mod common; pub mod common;
mod exceptions; mod exceptions;
pub mod maxicode; pub mod maxicode;
pub mod qrcode; pub mod qrcode;
#[cfg(feature = "client_support")]
pub mod client;
use std::{collections::HashMap, rc::Rc}; use std::{collections::HashMap, rc::Rc};
pub use exceptions::Exceptions; pub use exceptions::Exceptions;