Cargo Features

[dependencies]
rxing = { version = "0.6.1", default-features = false, features = ["image", "image_formats", "allow_forced_iso_ied_18004_compliance", "svg_write", "svg_read", "wasm_support", "experimental_features", "serde", "otsu_level", "client_support", "reverse_pyramid_layers"] }
default = client_support, image, image_formats

These default features are set whenever rxing is added without default-features = false somewhere in the dependency tree.

image default image_formats otsu_level? svg_read?

/// Enable features required for image manipulation and reading.

Enables image and imageproc

Affects helpers::detect_in_file, helpers::detect_in_file_with_hints, helpers::detect_multiple_in_file, helpers::detect_multiple_in_file_with_hints, helpers::save_image

image_formats default = image

Enables avif, bmp, dds, exr, ff, gif, hdr, ico, jpeg, png, pnm, qoi, tga, tiff and webp of image

allow_forced_iso_ied_18004_compliance

/// Allows the ability to force ISO/IED 18004 compliance.
/// Leave disabled unless specificially needed.

svg_write

/// Enable support for writing SVG files

Enables svg ^0.17.0

Affects helpers::save_svg

svg_read = image

/// Enable support for reading SVG files

Enables resvg ^0.42.0

Affects helpers::detect_in_svg, helpers::detect_in_svg_with_hints, helpers::detect_multiple_in_svg, helpers::detect_multiple_in_svg_with_hints

wasm_support

/// Enable support building this module in WASM

Enables wasmbind of chrono

experimental_features

/// Enable experimental features, risky.

Affects oned::cpp

serde

/// Adds support for serde Serialize and Deserialize for outward facing structs

Enables serde

otsu_level = image

/// Adds otsu binarizer support using imageproc

client_support default

/// Adds "client" features do decode many common data formats found in barcodes

Affects rxing::client

reverse_pyramid_layers

/// For the FilteredImageReader if this feature is enabled it /// will always reverse the order of pyramid scans