Commit graph

140 commits

Author SHA1 Message Date
Vladimir Serov b9d27ef174 utf-8: renamed canvas and pixel 2020-02-11 10:55:05 +03:00
Vladimir Serov 5b719f726e Merge branch 'feature/utf-8' of github.com:cab404/qrcode-rust into feature/utf-8 2020-02-10 14:17:21 +03:00
Vladimir Serov e8a2c66b27 utf8: removed redundant doc(hidden) annotation 2020-02-10 14:16:18 +03:00
Cabia Rangris 627ad65b04 Update README.md
Co-Authored-By: kennytm <kennytm@gmail.com>
2020-02-09 18:07:44 +01:00
Vladimir Serov 59980a3b6b utf-8: added integration test 2020-02-09 17:53:40 +03:00
Vladimir Serov b61e7656c2 utf-8: updated README 2020-02-09 17:39:51 +03:00
Vladimir Serov ebd1865545 utf-8: minor reformatting 2020-02-09 17:35:31 +03:00
Vladimir Serov 9eed3f6305 utf-8: moved codepage into a constant, and encoder into pixel impl 2020-02-09 17:34:14 +03:00
Vladimir Serov 4f2422ede6 utf-8: changed pixel type to Unicode1x2 2020-02-09 17:33:42 +03:00
Vladimir Serov d5a27c99e6 utf-8: better variable name for lambda 2020-02-09 17:31:10 +03:00
Vladimir Serov fdc37548f5 utf-8: added README section 2020-02-09 16:24:59 +03:00
Vladimir Serov d8262b278a utf-8: included into mod.rs 2020-02-09 16:04:45 +03:00
Vladimir Serov 0085199914 utf-8: initial support 2020-02-09 15:51:37 +03:00
kennytm e6c0d85555 Fix doc failure on nightly.
Fix #41.
2020-01-05 00:14:49 +08:00
kennytm bcecedf489 Merge pull request #40 from kennytm/ed2018
Use 2018 edition (MSRV = 1.33.0).
2019-12-22 17:43:13 +08:00
kennytm 518c6ecbe4 Set edition to 2018. 2019-12-22 17:34:09 +08:00
kennytm 6b9681dd6b Bump min Rust version to 1.33.0
jpeg-decoder relies on matching all of 0x00..=0xff exhausts u8,
which requires 1.33.0.
2019-12-22 16:57:53 +08:00
kennytm 6323585a35 Merge pull request #32 from Atul9/cargo-fmt
Format code using 'cargo fmt'
2019-08-17 14:35:38 +08:00
Atul Bhosale e3e2273e07 Format code using 'cargo fmt' 2019-08-13 00:06:49 +05:30
kennytm 6b673a42ca Merge pull request #30 from jbg/master
*image* v0.22.0
2019-08-04 15:11:22 +08:00
kennytm cf40fd60bf Merge pull request #31 from slowtec/svg-size
Add 'width' and 'height' properties to SVG output
2019-08-03 15:55:29 +08:00
Markus Kohlhase 9759b195a5 Add 'width' and 'height' properties to SVG output 2019-08-01 17:03:50 +02:00
kennytm 8d0f7798c4 Bump minimum Rust version 2019-07-30 11:23:10 +08:00
kennytm 40eed60eb4 Merge pull request #27 from pickfire/master
Remove extra space in cfg_attr doc
2019-07-30 11:21:16 +08:00
Jasper Bryant-Greene ed7951ab62 Bumped crate version 2019-07-28 09:14:26 +01:00
Jasper Bryant-Greene 843ed71a68 Updated to *image* v0.22.0 2019-07-28 09:14:06 +01:00
kennytm f3bd380c03 Version = 0.10.1 2019-07-07 02:02:30 +08:00
kennytm 0a4c64842d Merge pull request #28 from pickfire/branchless
Use branchless binary search to find_min_version
2019-07-06 23:46:22 +08:00
Ivan Tham 6c17473c7d Use branchless binary search to find_min_version
Constant search time and no unpredictable conditional branches
Benchmark results: 39 ns/iter -> 2 ns/iter (including multiple call)

Based on https://github.com/rust-lang/rust/pull/45333
Inspired by https://raw.githubusercontent.com/RustStudy/rust_daily_news/master/img/%E4%BA%8C%E7%BB%B4%E7%A0%81%E7%94%9F%E6%88%90.png
2019-07-06 23:24:26 +08:00
Ivan Tham 17107cb809 Remove extra space in cfg_attr doc 2019-06-16 18:01:43 +08:00
kennytm b93b1cd318 Version = 0.10.0 2019-04-19 03:48:30 +08:00
kennytm 399e6e6f1f Merge pull request #25 from ignatenkobrain/patch-1
chore: Update image to 0.21
2019-04-19 03:36:44 +08:00
kennytm 90811d79ba Disable coverage on macOS. 2019-04-19 03:34:20 +08:00
Igor Gnatenko 8a8127f9ab chore: Update image to 0.21 2019-03-15 07:15:53 +01:00
kennytm cbc6cd3192 Merge pull request #23 from jkcclemens/master
Don't depend on image crate default features
2018-11-09 19:27:05 +08:00
kennytm 8baee925a2 Merge pull request #24 from jkcclemens/viewBox
feat: set a viewBox on svg renders
2018-11-09 19:25:51 +08:00
Kyle Clemens 18e4ab98c4 feat: set a viewBox on svg renders
Instead of hard-coding a width and height, let the SVG scale according to its width and height.
2018-11-07 09:39:33 -05:00
Kyle Clemens 70fbcb8f24 fix: add image with default features as a dev-dependency 2018-11-07 09:15:43 -05:00
Kyle Clemens b722c0da19 chore: don't depend on image default features 2018-11-07 09:05:06 -05:00
kennytm 820ebfba0e Merge pull request #22 from aignas/TODO-fix-1
Fix TODO: use sum insted of left fold
2018-11-05 10:12:29 +08:00
Ignas Anikevicius 594724759c Fix TODO: use sum insted of left fold 2018-11-04 20:40:44 +02:00
kennytm 9607069265 Update version and dependencies 2018-10-14 02:37:49 +08:00
kennytm 90c71c1b01 Merge pull request #21 from ethanpailes/master
make QrError std::error::Error
2018-10-14 01:32:34 +08:00
Ethan Pailes 959137cf61 make QrError std::error::Error 2018-10-13 14:49:11 -04:00
kennytm 14e81b3502 Update README as well. 2018-07-30 18:23:08 +08:00
kennytm a4597dd62b Test with 1.26.2 instead of 1.26.0, and latest stable instead of 1.27. 2018-07-30 17:37:16 +08:00
kennytm 049ebbefdb Fix clippy warnings. 2018-07-30 17:31:40 +08:00
kennytm 51dd9c4fa1 rustfmt. 2018-07-30 16:59:49 +08:00
kennytm 01f209d0a5 Merge pull request #20 from aignas/inclusive-range
Use ..= in canvas.rs
2018-07-30 16:12:30 +08:00
Ignas Anikevicius 5329a7ec18 Bump the crate version as min Rust version now is 1.26.0 2018-07-29 19:21:24 +03:00