Commit Graph

149 Commits (master)

Author SHA1 Message Date
kennytm faa4397ba7
set min rust version = 1.34 2020-02-23 22:52:37 +08:00
kennytm 6fe4b52329
Update dependencies and set version = 0.12.0 2020-02-11 17:31:53 +08:00
kennytm 11a7b56dca
Fix clippy 2020-02-11 17:31:37 +08:00
kennytm 1e228247b0
Run cargo fmt 2020-02-11 16:32:29 +08:00
kennytm 03e18d5d93
Merge pull request #42 from cab404/feature/utf-8
utf-8: initial support
2020-02-11 16:27:03 +08:00
Vladimir Serov f395cf2029
unicode: non-inverted test 2020-02-11 11:05:53 +03:00
Vladimir Serov adcd1a6cf0
unicode: updated readme 2020-02-11 11:05:22 +03:00
Vladimir Serov 1fb4556b7f
rename utf8 → unicode 2020-02-11 10:57:02 +03:00
Vladimir Serov 9c1476e06c
utf-8: better formatted qr code in test 2020-02-11 10:55:29 +03:00
Vladimir Serov 372c4e6c3e
utf-8: renamed canvas and pixel 2020-02-11 10:55:05 +03:00
Vladimir Serov 35a6c2e2a1
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 c8eb4c0ae7
utf8: removed redundant doc(hidden) annotation 2020-02-10 14:16:18 +03:00
Cabia Rangris 5ac5a84f44
Update README.md
Co-Authored-By: kennytm <kennytm@gmail.com>
2020-02-09 18:07:44 +01:00
Vladimir Serov 8fd2fc2fe6
utf-8: added integration test 2020-02-09 17:53:40 +03:00
Vladimir Serov ee99427e9e
utf-8: updated README 2020-02-09 17:39:51 +03:00
Vladimir Serov 398e2d33f8
utf-8: minor reformatting 2020-02-09 17:35:31 +03:00
Vladimir Serov f606807b08
utf-8: moved codepage into a constant, and encoder into pixel impl 2020-02-09 17:34:14 +03:00
Vladimir Serov 083d6304ba
utf-8: changed pixel type to Unicode1x2 2020-02-09 17:33:42 +03:00
Vladimir Serov 9505e7a175
utf-8: better variable name for lambda 2020-02-09 17:31:10 +03:00
Vladimir Serov f2f82485dc
utf-8: added README section 2020-02-09 16:24:59 +03:00
Vladimir Serov ec6b09e319
utf-8: included into mod.rs 2020-02-09 16:04:45 +03:00
Vladimir Serov 521b595b9e
utf-8: initial support 2020-02-09 15:51:37 +03:00
kennytm c2c875f6c3
Fix doc failure on nightly.
Fix #41.
2020-01-05 00:14:49 +08:00
kennytm 2a1ace711a
Merge pull request #40 from kennytm/ed2018
Use 2018 edition (MSRV = 1.33.0).
2019-12-22 17:43:13 +08:00
kennytm a59af5cb85
Set edition to 2018. 2019-12-22 17:34:09 +08:00
kennytm 2504b8fefc
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 6001dc883d
Merge pull request #32 from Atul9/cargo-fmt
Format code using 'cargo fmt'
2019-08-17 14:35:38 +08:00
Atul Bhosale a64aa69716
Format code using 'cargo fmt' 2019-08-13 00:06:49 +05:30
kennytm a9184ef10f
Merge pull request #30 from jbg/master
*image* v0.22.0
2019-08-04 15:11:22 +08:00
kennytm d4dbd5dc22
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 b385e67a5e Add 'width' and 'height' properties to SVG output 2019-08-01 17:03:50 +02:00
kennytm 470044bbd2
Bump minimum Rust version 2019-07-30 11:23:10 +08:00
kennytm 2c8e9b2c83
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 d5184fd286 Bumped crate version 2019-07-28 09:14:26 +01:00
Jasper Bryant-Greene 80cf55bd12 Updated to *image* v0.22.0 2019-07-28 09:14:06 +01:00
kennytm ddb9d3f0f7
Version = 0.10.1 2019-07-07 02:02:30 +08:00
kennytm 8ee191866b
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 81404acbbd 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 0089a258f2 Remove extra space in cfg_attr doc 2019-06-16 18:01:43 +08:00
kennytm a585403336
Version = 0.10.0 2019-04-19 03:48:30 +08:00
kennytm a980f167f8
Merge pull request #25 from ignatenkobrain/patch-1
chore: Update image to 0.21
2019-04-19 03:36:44 +08:00
kennytm 1aa87a1d24
Disable coverage on macOS. 2019-04-19 03:34:20 +08:00
Igor Gnatenko 18960b8594
chore: Update image to 0.21 2019-03-15 07:15:53 +01:00
kennytm de70fed289
Merge pull request #23 from jkcclemens/master
Don't depend on image crate default features
2018-11-09 19:27:05 +08:00
kennytm 71e371d3a0
Merge pull request #24 from jkcclemens/viewBox
feat: set a viewBox on svg renders
2018-11-09 19:25:51 +08:00
Kyle Clemens 291f5be41e
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 9ad54dbac9
fix: add image with default features as a dev-dependency 2018-11-07 09:15:43 -05:00
Kyle Clemens ea57fff944
chore: don't depend on image default features 2018-11-07 09:05:06 -05:00
kennytm cfa679315b
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 25dc92ab5d Fix TODO: use sum insted of left fold 2018-11-04 20:40:44 +02:00