rxing/
lib.rs

1#![allow(non_snake_case)]
2#![allow(non_camel_case_types)]
3
4pub mod aztec;
5
6pub mod common;
7mod exceptions;
8pub mod maxicode;
9pub mod qrcode;
10
11#[cfg(feature = "client_support")]
12pub mod client;
13
14use std::{collections::HashMap, sync::Arc};
15
16pub use exceptions::Exceptions;
17
18#[cfg(feature = "image")]
19mod buffered_image_luminance_source;
20
21#[cfg(feature = "image")]
22pub use buffered_image_luminance_source::*;
23
24#[cfg(test)]
25mod PlanarYUVLuminanceSourceTestCase;
26
27#[cfg(test)]
28mod rgb_luminance_source_test_case;
29
30pub type EncodingHintDictionary = HashMap<EncodeHintType, EncodeHintValue>;
31pub type DecodingHintDictionary = HashMap<DecodeHintType, DecodeHintValue>;
32pub type MetadataDictionary = HashMap<RXingResultMetadataType, RXingResultMetadataValue>;
33
34mod barcode_format;
35pub use barcode_format::*;
36
37mod encode_hints;
38pub use encode_hints::*;
39
40/// Callback which is invoked when a possible result point (significant
41/// point in the barcode image such as a corner) is found.
42pub type PointCallback = Arc<dyn Fn(Point) + Send + Sync>;
43
44/** Temporary type to ease refactoring and keep backwards-compatibility */
45pub type RXingResultPointCallback = PointCallback;
46
47mod decode_hints;
48pub use decode_hints::*;
49
50mod writer;
51pub use writer::*;
52
53mod reader;
54pub use reader::*;
55
56mod rxing_result_metadata;
57pub use rxing_result_metadata::*;
58
59mod rxing_result;
60pub use rxing_result::*;
61
62mod result_point;
63pub use result_point::*;
64
65pub mod result_point_utils;
66
67mod rxing_result_point;
68pub use rxing_result_point::*;
69
70mod dimension;
71pub use dimension::*;
72
73mod binarizer;
74pub use binarizer::*;
75
76mod binary_bitmap;
77pub use binary_bitmap::*;
78
79mod luminance_source;
80pub use luminance_source::*;
81
82mod planar_yuv_luminance_source;
83pub use planar_yuv_luminance_source::*;
84
85mod rgb_luminance_source;
86pub use rgb_luminance_source::*;
87
88pub mod datamatrix;
89pub mod multi;
90pub mod oned;
91pub mod pdf417;
92
93mod multi_format_writer;
94pub use multi_format_writer::*;
95mod multi_use_multi_format_reader;
96pub use multi_use_multi_format_reader::*;
97
98mod multi_format_reader;
99pub use multi_format_reader::*;
100
101// Simple methods to help detect barcodes in common situations
102pub mod helpers;
103
104mod luma_luma_source;
105pub use luma_luma_source::*;
106
107mod filtered_image_reader;
108pub use filtered_image_reader::*;
109
110#[cfg(feature = "svg_read")]
111mod svg_luminance_source;
112#[cfg(feature = "svg_read")]
113pub use svg_luminance_source::*;