Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
ZBar Rust
High-level and low-level ZBar binding for the Rust language.
Compilation
To compile this crate, you need ZBar 0.22 or later.
pkg-config can find ZBar and its link dependencies.
To use a custom installation, set ZBAR_DIR to its prefix, or set both ZBAR_LIB_DIRS and ZBAR_INCLUDE_DIRS:
ZBAR_LIB_DIRS: The directories of library files, like-L. Separate paths with;on a Windows build host or:on other build hosts.ZBAR_INCLUDE_DIRS: The directories of header files, like-I. Use the same path separator asZBAR_LIB_DIRS.ZBAR_DIR: A prefix whoselibandincludesubdirectories are used whenZBAR_LIB_DIRSorZBAR_INCLUDE_DIRSis not set.ZBAR_LIBS: The library names to link, separated by:on every platform. Setting this variable replaces the library list frompkg-config.
When library directories are set manually, the default library name is zbar.
Set ZBAR_LIBS to include any required dependencies, such as zbar:iconv for a build that uses a separate iconv library.
When both library and header directories are provided, pkg-config is not needed; you must ensure that the installed ZBar is version 0.22 or later.
Missing directories are found with pkg-config, and an include-only override keeps automatic library discovery.
The following environment variables are optional:
ZBAR_STATIC: Set it to0to select dynamic linking, or to anything else to select static linking. When it is not set, dynamic linking is preferred when both kinds are available. Automatic discovery queries the private dependencies again if only a static ZBar library is available; dependencies may use dynamic linking when needed.ZBAR_DYLIB_STDCPP: Set it to anything but0to also linkstdc++dynamically.
Automatic library discovery preserves the frameworks, library files and linker arguments reported by pkg-config.
With manual linking, ZBAR_LIBS must contain the complete library list.
Examples
use GenericImageView;
use ZBarImageScanner;
let img = open.unwrap;
let = img.dimensions;
let mut scanner = new;
let results = scanner.scan_y800.unwrap;
for result in results
ZBar only scans 8-bit grayscale images. Use ZBarImage::convert for anything else, and the zbar_rust::ffi module for the parts of the C API this crate does not wrap.
Crates.io
https://crates.io/crates/zbar-rust