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
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
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
6431ef47fd
Tweaked Rust code to have safer integer lossless upcasts, thanks to clippy's diagnostics.
5 years ago
Project Nayuki
621a77757e
Simplified miscellaneous Rust code, due to clippy linting.
5 years ago
Project Nayuki
c36c4a28eb
Updated Java, C++, Python, Rust worker programs to catch the new exception; removed error message string comparisons.
6 years ago
Project Nayuki
4e774437b3
Simplified some Rust code.
6 years ago
Project Nayuki
0cded0ba36
Aligned main comments in demo programs.
6 years ago
Project Nayuki
c0b684bc18
Tweaked comment for kanji demo in multiple languages, so that it corresponds to the order in the sample text string.
7 years ago
Project Nayuki
9628e25971
Updated Rust code to wrap valid mask numbers in a simple struct, removed unnecessary argument assertions.
7 years ago
Project Nayuki
a88f0942af
Updated Rust code to wrap valid version numbers in a simple struct, removed unnecessary argument assertions.
7 years ago
Project Nayuki
27aad80052
Updated Rust code to use wrapper struct for BitBuffer, to avoid repeatedly writing mutable borrows.
7 years ago
Project Nayuki
5a5626edb2
Added integer constants for QR Code min/max version numbers, made use of new constants in library and example applications, in all language versions except C.
7 years ago
Project Nayuki
6f5eccf2fc
Tweaked some Rust code for clarity, without changing behavior.
7 years ago
Project Nayuki
e0672f5fd5
Simplified some Rust code by moving Vec's type parameter to the function call instead of being in the variable declaration's type.
7 years ago
Project Nayuki
6a71e09f72
Added/tweaked comments and blank lines in demo programs of all language versions except JavaScript.
7 years ago
Project Nayuki
b86466ecd5
- Deleted constructors/functions/code for remasking existing QrCode object (due to doubtful real-world usefulness): C++, Java, JavaScript, Python, Rust.
...
- Tweaked code and comments due to feature removal: JavaScript, Python.
- Updated demo programs to reflect new API usage and add new example: C, C++, Java, Python, Rust.
7 years ago
Project Nayuki
8ef73d2325
Changed Rust API to take Option<u8> instead of i8 for automatic masking, updated related code and assertions.
7 years ago
Project Nayuki
88be30fe12
Changed Rust QrSegmentMode struct into enum, changed fields to methods, made the type copyable, got rid of static lifetimes and references in favor of passing by value, updated a program to work with this altered API.
7 years ago
Project Nayuki
b7817ab944
Changed Rust QrCodeEcc struct into enum, changed fields to methods, made the type copyable, got rid of static lifetimes and references in favor of passing by value, updated programs to work with this altered API.
7 years ago
Project Nayuki
03b502946d
Added Rust port of runnable worker program for batch testing.
7 years ago
Project Nayuki
82156abb10
Changed Rust library's API to return Option<QrCode> instead of QrCode, updated demo program to fit.
7 years ago
Project Nayuki
d4f71e49d7
Added a working demo example program in Rust.
7 years ago