Commit Graph
569 Commits
Author SHA1 Message Date
Steve Cook d2ab7de5dd Add error reporting to tests 2023-03-02 00:06:30 -05:00
Steve Cook 70b1ef270f Update tests 2023-03-01 22:49:07 -05:00
Steve Cook c5460debe1 Cargo clippy --all-features 2023-03-01 22:33:56 -05:00
Steve Cook daa1d86358 Fixes for all features 2023-03-01 22:19:37 -05:00
Steve Cook a9bc58108c Initial generics 2023-03-01 22:08:12 -05:00
Henry A SchimkeandGitHub 26325928e7 Merge pull request #18 from SteveCookTU/thiserror
Use thiserror for error handling with less boilerplate
2023-03-01 16:23:32 -06:00
Steve Cook b561bd77c3 Update macro and cargo fmt 2023-03-01 13:43:21 -05:00
Steve Cook 51fcc98b34 Merge branch 'main' into thiserror
# Conflicts:
#	src/aztec/decoder.rs
#	src/datamatrix/decoder/decoded_bit_stream_parser.rs
2023-03-01 13:39:30 -05:00
Henry Schimke f450c6e0f7 cargo clippy --fix 2023-03-01 10:50:52 -06:00
Henry Schimke 42efbb397d move maxicode detector to Point 2023-03-01 10:47:31 -06:00
Henry Schimke 24e35f4226 update versions 2023-03-01 09:23:14 -06:00
Henry A SchimkeandGitHub da91cab6ef Merge pull request #19 from rxing-core/re-organize-repository
Repository Reorganization Work
2023-03-01 09:11:39 -06:00
Henry Schimke edc8e67685 move cli utility into repository
This commit also adds the `--workspace`` flag to the automated build and test scripts
2023-03-01 08:46:49 -06:00
Henry Schimke 8fc0e1029c initial move of one-d-proc-macros 2023-02-26 12:22:52 -06:00
Henry A SchimkeandGitHub 2c7a18c842 Merge pull request #17 from Asha20/pr/remove_number_suffixes
Remove unnecessary number suffixes
2023-02-24 11:15:37 +09:00
SteveCookTUandGitHub 35eb716813 Remove #[allow(non_upper_case_globals)] 2023-02-22 00:56:04 -05:00
Steve Cook f8b29f37db Use thiserror for error handling with less boilerplate 2023-02-20 09:41:28 -05:00
Vukašin Stepanović c77f0af6f6 remove unnecessary number suffixes 2023-02-17 16:12:23 +00:00
Henry A SchimkeandGitHub 01e4f4a126 Merge pull request #13 from Asha20/pr/point_refactor
Improve RXingResultPoint usage
2023-02-17 21:58:10 +09:00
Vukašin Stepanović 4c9987425d Merge branch 'main' into pr/point_refactor 2023-02-16 16:43:24 +00:00
Vukašin Stepanović 1322f7defa remove impl ResultPoint for FinderPattern & AlignmentPattern 2023-02-16 16:33:22 +00:00
Vukašin Stepanović 072d3d0ec7 change PointCallback to accept Point instead of ResultPoint 2023-02-16 16:20:58 +00:00
Vukašin Stepanović 0992e85e6c remove ResultPoint trait uses of Point
Point already has `x` and `y` properties, so accessing
them with `getX()` and `getY()` is needlessly verbose.
These calls have been removed, though the trait impl is
still presen for the time being, since the OneDReader
proc macro requires it.
2023-02-16 15:54:07 +00:00
Vukašin Stepanović 9889555b02 refactor ResultPoint trait bounds into Into<Point> bounds 2023-02-16 15:19:35 +00:00
Vukašin Stepanović 00f007f14c refactor orderBestPatterns to not use ResultPoint 2023-02-16 15:10:33 +00:00
Vukašin Stepanović 41150a8f8b re-add RXingResultPointCallback for backwards-compat 2023-02-16 15:02:30 +00:00
Vukašin Stepanović 3881df6672 Remove result_point_utils::distance() 2023-02-16 12:50:24 +00:00
Vukašin Stepanović 39b4866e47 add point(x: f32, y: f32) function
Shorter than writing `Point::new`
2023-02-16 11:20:03 +00:00
Henry A SchimkeandGitHub 7b891bd858 Merge pull request #11 from Asha20/pr/exception_helpers
Simplify the creation of Exceptions
2023-02-16 19:04:50 +09:00
Vukašin Stepanović 868a9b26de remove MathUtils module 2023-02-16 09:38:37 +00:00
Vukašin Stepanović 71128a81bc remove MathUtils::round() 2023-02-16 09:37:21 +00:00
Vukašin Stepanović 79d9b28d19 remove MathUtils::distance() 2023-02-16 09:28:22 +00:00
Vukašin Stepanović 844ffc3b81 cargo fmt 2023-02-16 08:40:57 +00:00
Vukašin Stepanović 05e377e85b add aliases so the OneDReader proc macro compiles
Currently it's not possible to rename RXingResultPoint
to Point cleanly, since the external OneDReader proc macro
makes use of them. For the time being, simple aliases
are introduced to get the code to compile, but the plan
is to remove them at a later point.
2023-02-16 08:31:35 +00:00
Vukašin Stepanović dbc6ca4e55 wip: Search & replace RXingResultPoint with Point
Build fails because the OneDReader proc macro expects
that a RXingResultPoint type exists.
2023-02-16 08:25:32 +00:00
Henry A SchimkeandGitHub 46e8032664 Update rust.yml
Add a cargo check —release before trying to build, possibly short circuit on broken code
2023-02-16 16:41:24 +09:00
Vukašin Stepanović 15280d5f98 Merge branch 'main' into pr/point_refactor 2023-02-16 07:19:36 +00:00
Vukašin Stepanović 41c5615ee3 Merge branch 'main' into pr/exception_helpers 2023-02-16 07:15:51 +00:00
Vukašin Stepanović 4a35cb6e99 use Self::new() for point creation 2023-02-16 07:03:02 +00:00
Henry A SchimkeandGitHub 118da16645 Create rust.yml
Add rust build/test workflow to main branch commits and pull requests
2023-02-16 07:21:56 +09:00
Henry A SchimkeandGitHub 75767125ca Merge pull request #9 from Asha20/pr/refactor
Refactor to use common result type
2023-02-16 06:57:04 +09:00
Vukašin Stepanović 049d27723d refactor aztec Detector::expand_square 2023-02-15 14:54:51 +00:00
Vukašin Stepanović 6b7099a03b remove indirection for RxingResultPoint
Previously, the struct was passed around everywhere as a
reference. It only holds two floats, so there's no real
need for indirection. Now it's being passed as a value.
2023-02-15 14:42:07 +00:00
Vukašin Stepanović 755e4a6e69 add missing imports 2023-02-15 12:59:25 +00:00
Vukašin Stepanović 935519ced5 rename helper methods 2023-02-15 12:52:59 +00:00
Vukašin Stepanović bfcdb397ad remove even more needless string conversions 2023-02-15 11:25:18 +00:00
Vukašin Stepanović df8828331d remove more needless String conversions 2023-02-15 11:19:01 +00:00
Vukašin Stepanović 528ddea41c remove .to_owned() calls on &str in exceptions 2023-02-15 11:12:28 +00:00
Vukašin Stepanović 722ce78fd0 refactor to use exception helper factories 2023-02-15 10:46:21 +00:00
Vukašin Stepanović 3e27279dc8 add exception factories 2023-02-15 07:47:20 +00:00