feat: Upgrade to zxing-cpp 0.5.0 with improved error handling#23
Merged
Conversation
a90503f to
84b2117
Compare
- Upgrade to zxing-cpp 0.5.0 Rust bindings - Migrate from anyhow to thiserror for precise error types - Change From to TryFrom for type-safe barcode format conversion - Add support for all 32 barcode format variants - Optimize memory usage with stack-based arrays instead of heap allocation - Maintain backward compatibility for format names (e.g., DataBarExpanded) - Update type stubs with complete format list and correct Point types - Update benchmarks and documentation with latest results - Add dev dependencies for testing (pytest, pillow, managed via uv)
- Update Ubuntu runners from 22.04 to 24.04 - Standardize Linux x86_64 builds to use PyO3/maturin-action - Add explicit C++20 standard support with CXXFLAGS - Update macOS runner to macos-15 and add Xcode setup - Update Alpine base image to Python 3.14.3
84b2117 to
4e6426f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades pyrxing to use zxing-cpp 0.5.0 with enhanced error handling and type safety improvements.
Key Changes
Core Improvements
anyhowtothiserrorfor precise, typed errorsFromtoTryFromfor barcode format conversion, eliminating panicsDataBarExpandedinstead ofDataBarExp)API & Documentation
.pyifilefloattointto match actual implementation