{"id":21586141,"url":"https://github.com/magiclen/zbar-rust","last_synced_at":"2025-04-10T20:20:57.534Z","repository":{"id":57672811,"uuid":"155522912","full_name":"magiclen/zbar-rust","owner":"magiclen","description":"High-level and low-level ZBar binding for the Rust language.","archived":false,"fork":false,"pushed_at":"2023-12-15T03:19:11.000Z","size":51,"stargazers_count":11,"open_issues_count":3,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-03-15T05:05:59.479Z","etag":null,"topics":["rust","zbar"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/magiclen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-31T08:24:45.000Z","updated_at":"2024-08-11T12:48:51.484Z","dependencies_parsed_at":"2023-12-15T03:37:18.733Z","dependency_job_id":"7f58d317-f95f-4fe3-9075-ebbc652235f3","html_url":"https://github.com/magiclen/zbar-rust","commit_stats":{"total_commits":33,"total_committers":3,"mean_commits":11.0,"dds":0.09090909090909094,"last_synced_commit":"49ee91dc25949edfe3504661d39534a34e51bb06"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fzbar-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fzbar-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fzbar-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fzbar-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magiclen","download_url":"https://codeload.github.com/magiclen/zbar-rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248289862,"owners_count":21078922,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rust","zbar"],"created_at":"2024-11-24T15:12:47.127Z","updated_at":"2025-04-10T20:20:57.509Z","avatar_url":"https://github.com/magiclen.png","language":"Rust","readme":"ZBar Rust\n====================\n\n[![CI](https://github.com/magiclen/zbar-rust/actions/workflows/ci.yml/badge.svg)](https://github.com/magiclen/zbar-rust/actions/workflows/ci.yml)\n\nHigh-level and low-level ZBar binding for the Rust language.\n\n## Compilation\n\nTo 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:\n\n* `ZBAR_LIB_DIRS`: The directories of library files, like `-L`. Use `:` to separate.\n* `ZBAR_LIBS`: The library names that you want to link, like `-l`. Use `:` to separate. Typically, it is **iconv:zbar**.\n* `ZBAR_INCLUDE_DIRS`: The directories of header files, like `-i`. Use `:` to separate.\n\n## Examples\n\n```rust\nuse zbar_rust::ZBarImageScanner;\n\nuse image::GenericImageView;\n\nlet img = image::open(INPUT_IMAGE_PATH).unwrap();\n\nlet (width, height) = img.dimensions();\n\nlet mut scanner = ZBarImageScanner::new();\n\nlet mut results = scanner.scan_y800(img.into_luma8().into_raw(), width, height).unwrap();\n\nfor result in results {\n    println!(\"{}\", String::from_utf8(result.data).unwrap())\n}\n```\n\nMore examples are in the `examples` folder.\n\n## Crates.io\n\nhttps://crates.io/crates/zbar-rust\n\n## Documentation\n\nhttps://docs.rs/zbar-rust\n\n## License\n\n[LGPL-2.1](LICENSE)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Fzbar-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagiclen%2Fzbar-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Fzbar-rust/lists"}