Commit graph

114 commits

Author SHA1 Message Date
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
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
Ignas Anikevicius e9a7756693 Use ..= in canvas.rs 2018-07-29 19:14:58 +03:00
Ignas Anikevicius cd713761ab Update Travis to rust matrix to include versions that have ..= 2018-07-29 19:14:39 +03:00
kennytm a659c651f6 Upgrade minimum Rust dependency to 1.23.0 (needed by image 0.19.0) 2018-05-05 22:58:19 +08:00
kennytm 702e18b2a8 Make sure README.md is tested.
Fixes #18.
2018-05-05 22:50:01 +08:00
kennytm a93111d930 Update dependencies. 2018-05-05 22:49:35 +08:00
kennytm c19ace9100 Cargo update. 2018-03-26 19:44:45 +08:00
kennytm 6667e3da08 >:-( 2018-03-26 19:43:42 +08:00
kennytm 21efb6205e Rustfmt and clippy. 2017-11-07 22:12:18 +08:00
kennytm 8be25fa56a Update dependencies. 2017-11-03 06:15:01 +08:00
kennytm 000e218b62 Merge pull request #15 from ivanceras/master
Use unicode block for rendering of QR string
2017-07-18 16:23:25 +08:00
Jovansonlee Cesar fc2d2a1f6b Fix render to string test case 2017-07-18 16:04:36 +08:00
Jovansonlee Cesar 1904e57746 Use unicode block for rendering of string qr 2017-07-18 15:21:58 +08:00
kennytm 6cbc50bb38 Merge pull request #14 from kennytm/040
Version 0.4.0
2017-05-23 07:13:17 +08:00
kennytm a32ac8bd32 Update README and examples. 2017-05-23 06:56:22 +08:00
kennytm cd5223640c Support SVG rendering.
Fixes #8.
2017-05-23 06:56:22 +08:00
kennytm 0b3b8f2637 Refactor Renderer to support rendering to String.
Closes #12.
2017-05-23 06:56:22 +08:00
kennytm 3da78c8871 Remove num-traits dependency. 2017-05-23 06:56:22 +08:00
kennytm 21114481f4 Change all bool type to explicit Color type. 2017-05-23 06:56:22 +08:00
kennytm fab0705ef8 Improve Travis. 2017-05-23 06:56:22 +08:00
kennytm 0e1c1fe1f6 Fix doctest when feature can be changed. 2017-05-18 22:21:31 +08:00
kennytm 200ebf40d6 Update dependencies. 2017-05-18 21:40:15 +08:00
kennytm 596c67cae9 Exclude test-data/ for now... 2017-01-27 01:03:48 +08:00
kennytm c960c09662 Incorporate README example directly into doc test. 2017-01-27 01:02:34 +08:00
kennytm 1d5d6f2883 Some dependencies needed the ? operator -.-.
Removed documentation, rely on docs.rs instead.
2017-01-13 11:27:57 +08:00
kennytm 01e3af105e Just update dependencies. 2017-01-13 02:43:46 +08:00
kennytm c7e6a7a22a Minor changes. 2016-06-08 01:05:06 +08:00