Project Nayuki
|
2643e824eb
|
Enabled constant evaluation of Rust Version/Mask functions/methods.
|
2 years ago |
Project Nayuki
|
5d9ec8dfdd
|
Replaced some Rust object method calls with primitive arithmetic in order to support constant evaluation.
|
2 years ago |
Project Nayuki
|
13e37016bd
|
Added directives to Rust code to suppress a stylistic lint check.
|
2 years ago |
Project Nayuki
|
720f62bddb
|
Updated package version numbers.
|
3 years ago |
Project Nayuki
|
17e1a8a6d4
|
Marked Rust code to forbid unsafe.
|
3 years ago |
Project Nayuki
|
d02fe511cc
|
Updated the content of language-specific readme files and package-level documentation comments.
|
3 years ago |
Project Nayuki
|
df44e259d1
|
Added a paragraph to partially synchronize all readme files and package-level documentation comments.
|
3 years ago |
Project Nayuki
|
7a052cc5b2
|
Removed references to other programming languages within language-specific overview/readme text.
|
3 years ago |
Project Nayuki
|
8bd5ed46b5
|
Revamped the DataTooLong error type in Rust to change from string to enum and remove Error.description().
|
3 years ago |
Project Nayuki
|
fb9638d591
|
Reformatted a long function signature in Rust.
|
3 years ago |
Project Nayuki
|
253ef19a4d
|
Reformatted some Rust code so that the expressions surrounding `..` have no spaces around operators.
|
3 years ago |
Project Nayuki
|
50f0c4b5bc
|
Tweaked some of QrSegment.makeEci()'s integer literals to binary notations in most language ports.
|
3 years ago |
Project Nayuki
|
86a49ba597
|
Tweaked Rust code to use `T::try_from(x).unwrap()` instead of `x as T`, in some cases for safety.
|
3 years ago |
Project Nayuki
|
67ddbb6304
|
Clarified a few bits of Rust code.
|
3 years ago |
Project Nayuki
|
d239c32c45
|
Simplified a few comparisons in Rust code.
|
3 years ago |
Project Nayuki
|
ad537b93d9
|
Changed C++, Rust, Python code to use debug-mode assertions that can be disabled, similar to Java's assert, corresponding to the logic in the Java language port.
|
3 years ago |
Project Nayuki
|
f6f91e4a7f
|
Removed unhelpful assertion error messages from Rust code.
|
3 years ago |
Project Nayuki
|
845eab6f36
|
Simplified a bit of code.
|
3 years ago |
Project Nayuki
|
c7ab2582aa
|
Added value range assertions to QrCode.getPenaltyScore(), in all language ports.
|
3 years ago |
Project Nayuki
|
edc91c622e
|
Renamed a local variable in Rust code for consistency with other language ports.
|
3 years ago |
Project Nayuki
|
f0945bc682
|
Tweaked Python, Rust, TypeScript code to rename the constructor `mask` parameter to `msk` for consistency with Java and C++ language ports (related to commit 67c62461d3 ), and to avoid potential confusion with the object field named `mask`.
|
3 years ago |
Project Nayuki
|
d6be9c5e44
|
Slightly tweaked code and comments to correspond to other language ports.
|
3 years ago |
Project Nayuki
|
c6fcc212d1
|
Simplified a bit of internal Rust code.
|
3 years ago |
Project Nayuki
|
3ae4141666
|
Slightly deoptimized Rust code for clarity, partly undoing commit 6c1f967894 .
|
3 years ago |
Project Nayuki
|
599b637c73
|
Fixed example Rust code in documentation comments, due to commit 6c1f967894 .
|
3 years ago |
Project Nayuki
|
df548a379d
|
Refactored Rust code to use {Range,RangeInclusive}.contains() instead of primitive operations.
|
3 years ago |
Project Nayuki
|
3301b07c21
|
Simplified small pieces of Rust code.
|
3 years ago |
Project Nayuki
|
6c1f967894
|
Changed Rust functions to take &str instead of &[char] because that type is more natural to use, removed intermediate step of making Vec<char>, updated demo program to fit.
|
3 years ago |
Project Nayuki
|
3185c310e3
|
Refactored a repeated expression in Rust code.
|
3 years ago |
Project Nayuki
|
db4ad0bda8
|
Hyphenated a phrase.
|
3 years ago |
Project Nayuki
|
4d13c303dc
|
Updated package version numbers.
|
3 years ago |
Project Nayuki
|
10c094f99b
|
Tweaked Rust configuration to exclude example programs from crate package.
|
3 years ago |
Project Nayuki
|
c8e1b0caed
|
Fixed example code in Rust documentation, related to commits a88f0942af and 3da57e5aa0 .
|
3 years ago |
Project Nayuki
|
fd425bf995
|
Publicized the Rust functions QrSegment.{is_numeric(),is_alphanumeric()}.
|
3 years ago |
Project Nayuki
|
0e80f23c04
|
Reordered QrSegment.{isNumeric(),isAlphanumeric()} in {C, C++, Rust} versions.
|
3 years ago |
Project Nayuki
|
764749bd8a
|
Added spaces around multiplication operators in QrCode.getAlignmentPatternPositions() for all language versions, for consistency with other code.
|
3 years ago |
Project Nayuki
|
2261248957
|
Removed the test worker program in every language and the Python batch tester, because this is not core functionality and is hard to explain.
|
3 years ago |
Project Nayuki
|
5bc7bce3c3
|
In Rust version: moved QrCode.to_svg_string() out of the library and into the runnable demo program, slightly adapted some code, updated documentation comments.
|
3 years ago |
Project Nayuki
|
1fd0216dfe
|
Changed the word "black" to "dark" in {comments, local variables,} in order to match the vocabulary in the QR Code specification document.
|
3 years ago |
Project Nayuki
|
99e7d59383
|
Changed the word "white" to "light" in {comments, local variables, a private C function} in order to match the vocabulary in the QR Code specification document.
|
3 years ago |
Project Nayuki
|
f9d1172e29
|
Fixed the names of some methods in comments.
|
4 years ago |
Project Nayuki
|
8cbd1f506a
|
Changed Rust API to move the version min/max values into associated constants for its type.
|
4 years ago |
Project Nayuki
|
bafd258293
|
Clarified a few pieces of Rust code.
|
4 years ago |
Project Nayuki
|
d00cbd3585
|
Added static types to some variables in Rust code.
|
4 years ago |
Project Nayuki
|
43020cbd67
|
Fixed Rust code to avoid arithmetic overflow when a segment's bit length is very near usize::MAX.
|
4 years ago |
Project Nayuki
|
705ce44efd
|
Fixed arithmetic overflow in Rust code on platforms where usize is 16 bits wide.
|
4 years ago |
Project Nayuki
|
98963e5cba
|
Tweaked Rust code to narrow the bit width of QrCodeEcc.format_bits().
|
4 years ago |
Project Nayuki
|
fd849b188c
|
Updated package version numbers.
|
5 years ago |
Project Nayuki
|
2da5091674
|
Tweaked Rust code to add useful auto-derived traits to almost all structs.
|
5 years ago |
Project Nayuki
|
1439e8e4a5
|
Simplified some Rust code.
|
5 years ago |