docs.rs failed to build zbar-rust-0.0.24
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.
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 to compile the ZBar library first. You can install ZBar in your operating system, or in somewhere in your file system. As for the latter, you need to set the following environment variables to link the ZBar library:
ZBAR_LIB_DIRS
: The directories of library files, like-L
. Use:
to separate.ZBAR_LIBS
: The library names that you want to link, like-l
. Use:
to separate. Typically, it is iconv:zbar.ZBAR_INCLUDE_DIRS
: The directories of header files, like-i
. Use:
to separate.
Examples
use ZBarImageScanner;
use GenericImageView;
let img = open.unwrap;
let = img.dimensions;
let mut scanner = new;
let mut results = scanner.scan_y800.unwrap;
for result in results
More examples are in the examples
folder.
Crates.io
https://crates.io/crates/zbar-rust