Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ uriparse = {version = "0.6", optional = true}
chrono = { version = "0.4", default-features = false, features = ["clock", "std", "oldtime"] }
chrono-tz = {version = "0.10", optional = true}
image = {version = "=0.25.8", optional = true, default-features = false}
imageproc = {version = "0.25", optional = true}
imageproc = {version = "0.25", optional = true, default-features = false}
unicode-segmentation = "1.13"
codepage-437 = {version = "0.1", optional = true}
rxing-one-d-proc-derive = {version = "0.9", path ="./crates/one-d-proc-derive", optional = true}
Expand All @@ -46,6 +46,7 @@ default = [
"image",
"client_support",
"image_formats",
"rayon",
"serde",
"encoding_rs",
"encoders",
Expand Down Expand Up @@ -75,6 +76,10 @@ image_formats = [
"image/ff",
]

#/// Enable rayon-based parallelism inside imageproc operations (binarizers, filters).
#/// Off by default; correctness is unaffected, this only speeds up image processing.
rayon = ["image", "imageproc/rayon"]

#/// Enable barcode encoders
encoders = []

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ The following feature flags are available:
### Core & Engine
* `image` (default): Enable features required for image manipulation and reading.
* `image_formats` (default): Enabled by default. Compile all `image` crate image format support options.
* `rayon` (default): Enabled by default. Turns on `rayon`-based parallelism inside the `imageproc` operations rxing uses (binarizers, filters).
* `encoders` (default): Enable barcode encoders.
* `decoders` (default): Enable barcode decoders.
* `multi_barcode_readers` (default): Enable support for reading multiple barcodes in a single image.
Expand Down Expand Up @@ -106,6 +107,7 @@ default = [
"image",
"client_support",
"image_formats",
"rayon",
"serde",
"encoding_rs",
"encoders",
Expand Down
Loading