Commit Graph

245 Commits

Author SHA1 Message Date
Kogia-sima 834289be59 refactor: Reduce unsafe blocks 2020-11-21 18:44:52 +09:00
Kogia-sima 82fb9f5469 refactor: Remove unused code 2020-11-21 18:25:36 +09:00
Kogia-sima ed25390917 Avoid running compile-failure tests in CI 2020-11-21 18:03:45 +09:00
Kogia-sima 52e635af6e Update compile error tests 2020-11-21 18:03:41 +09:00
Kogia-sima cfd40f573b Bump version (0.2.1 => v0.2.2) 2020-11-11 10:48:30 +09:00
Kogia-sima af6c052b1f Update proc-macro2 (fix #32) 2020-11-11 10:46:40 +09:00
Kogia-sima 2ecc5ce63f Update CHANGELOG 2020-08-04 09:28:28 +09:00
Kogia-sima 2ba4a99582 Bump version (0.2.0 => 0.2.1) 2020-08-04 09:18:24 +09:00
Kogia-sima 5666f92b9d Search rustfmt along all toolchains 2020-08-04 03:33:49 +09:00
Kogia-sima d79a5d3b4b perf: Zero-copy conversion from String into Buffer 2020-08-04 03:14:21 +09:00
Kogia-sima 941cd965ab Do not use render_once_to_string method directly 2020-07-26 00:02:51 +09:00
Kogia-sima 4f64a3b7fe Avoid over-size allocation in `render_once_to_string` 2020-07-25 23:56:17 +09:00
Kogia-sima 658a623008 Remove profile overrides 2020-07-25 07:58:13 +09:00
Kogia-sima 4fc278ecfb Revert "Improve Template::render() performance"
This reverts commit 4e8b437387.
2020-07-25 07:48:00 +09:00
Kogia-sima 383a6db3e3 Add `rm_whitespace = true` option for some tests 2020-07-25 07:48:00 +09:00
Kogia-sima 3678978e54
Merge pull request #30 from stoically/patch-1
Fix docs typo
2020-07-24 12:35:30 +09:00
stoically f37f074a67
Fix docs typo 2020-07-24 04:32:51 +02:00
Kogia-sima 4a8ce80e3d improve escape_small() performance 2020-07-23 11:49:53 +09:00
Kogia-sima 4e8b437387 Improve Template::render() performance 2020-07-23 11:48:19 +09:00
Kogia-sima cc10171b73 Avoid dangerous conversion from String to Buffer 2020-07-22 07:05:15 +09:00
Kogia-sima fcde448751 Add trim filter 2020-07-22 06:40:26 +09:00
Kogia-sima 31bbcaebc8 Avoid capacity overflow in Buffer::with_capacity 2020-07-22 03:25:07 +09:00
Kogia-sima 236dff6b10 Improve size hint update algorithm 2020-07-21 09:00:15 +09:00
Kogia-sima 9765de213f Allow proc-macro2 v1.0.19 as a dependency 2020-07-21 07:22:34 +09:00
Kogia-sima a3fdc8e226 fix: Fix vim syntax highlighting
* highlight sailfish tag inside html strings
2020-07-18 09:31:23 +09:00
Kogia-sima 3515380d93 Add CHANGELOG.md 2020-07-18 02:34:22 +09:00
Kogia-sima 9dfcfe2c45 Add filter documentation in User Guide 2020-07-17 18:06:06 +09:00
Kogia-sima d0ef795161 Bump version (0.1.3 => 0.2.0) 2020-07-17 04:48:29 +09:00
Kogia-sima 1141580878 Fix number of skips on parsing code block 2020-07-15 23:22:10 +09:00
Kogia-sima 80b64fe883 break: Remove Buffer::set_len method
This method allows reducing the buffer size, but it should not be
possible.
Alternatively I added a Buffer::advance method to increase the length.
2020-07-15 19:49:35 +09:00
Kogia-sima fabc3ba149 Merge branch 'feature/filter'
close #2
2020-07-15 19:40:53 +09:00
Kogia-sima 15b0504564 Add tests for filter 2020-07-15 19:34:53 +09:00
Kogia-sima eac0dfbf5b Add minimal runtime filters 2020-07-15 17:12:31 +09:00
Kogia-sima 373ffc135e Implement filter transformation 2020-07-15 07:38:11 +09:00
Kogia-sima 2d15165406 break: Syntactically disallow invalid filter expression 2020-07-15 04:17:50 +09:00
Kogia-sima 119e282945 Avoid generating _size_hint local variable 2020-07-15 00:06:01 +09:00
Kogia-sima 670d936def break: remove runtime::Context API 2020-07-15 00:06:01 +09:00
Kogia-sima 2ebb4b290f Exclude examples/ directory from workspaces 2020-07-15 00:06:01 +09:00
Kogia-sima 869c58dcb1 Use UFCS instead of receiver coecions
This change is required to achieve filter
2020-07-15 00:06:01 +09:00
Kogia-sima 203a890618 break: Remove register_escape_fn API 2020-07-15 00:06:01 +09:00
Kogia-sima 3040084ca9 do not use `sfrt` as an alias to sailfish::runtime 2020-07-15 00:05:56 +09:00
Kogia-sima 38de1f8051 Merge branch 'test/afl'
close #26
2020-07-14 22:48:21 +09:00
Kogia-sima 6c72bb17d1 Put all tests in sailfish-tests/ directory 2020-07-14 22:46:58 +09:00
Kogia-sima 4d548bdb94 Add fuzzing test for sailfish-compiler
cc #26
2020-07-14 22:28:15 +09:00
Kogia-sima b420cc0161 feat: Implement Compiler::compile_str() function 2020-07-14 22:07:35 +09:00
Kogia-sima 727ed61844 Add simple fuzzing test
cc #26
2020-07-14 21:45:56 +09:00
Kogia-sima c01784b154 Add formatting test 2020-07-14 20:41:45 +09:00
Kogia-sima 470f5b7ffa Remove unreachable code 2020-07-14 20:37:20 +09:00
Kogia-sima 3267d60f1b Add test for configuration file 2020-07-14 18:59:39 +09:00
Kogia-sima e277fe4a7d Add more tests for runtime 2020-07-14 18:38:38 +09:00
Kogia-sima f41047ef92 Optimize Buffer::push_str() implementation for stable compiler 2020-07-14 05:43:02 +09:00
Kogia-sima b1f266a285 Fix buffer capacity overflow check 2020-07-13 06:47:19 +09:00
Kogia-sima e321d6b013 Update benchmark dependencies 2020-07-13 06:44:53 +09:00
Kogia-sima 65636d2ebc Suppress "Failed to remote artifact" error in rust-analyzer 2020-07-13 01:28:42 +09:00
Kogia-sima 3b06795f5e Bump version (0.1.2 => 0.1.3) 2020-07-11 17:46:55 +09:00
Kogia-sima 5d874e44ea doc: update doc comments 2020-07-11 17:10:23 +09:00
Kogia-sima 9982ab0683 Suppress warning when `config` feature flag is disabled 2020-07-11 17:02:31 +09:00
Kogia-sima b4903f2b3d refactor: Add utils.rs 2020-07-11 04:23:39 +09:00
Kogia-sima 5cef362dbd Add more debug assertions 2020-07-11 02:39:04 +09:00
Kogia-sima 277a71cd0f Optimize long HTML escaping 2020-07-11 02:29:55 +09:00
Kogia-sima f93d6e74b3 Add instructions for vim syntax plugin
[skip ci]
2020-07-10 19:09:12 +09:00
Kogia-sima 2a10342cd7 Add link to VisualStudio Marketplace 2020-07-10 18:29:19 +09:00
Kogia-sima 6981992efb Prepare VSCode syntax extention for publishing 2020-07-10 18:27:04 +09:00
Kogia-sima eb438f6d3c Fix safe_realloc implementation 2020-07-10 10:20:10 +09:00
Kogia-sima 28baf202c2 Hide SizeHint and Context from docs 2020-07-10 08:50:32 +09:00
Kogia-sima 6c21955189 Fix memcpy_small implementation to emulate glibc implenetation exactly 2020-07-10 07:38:06 +09:00
Kogia-sima 3043719d35 Fix default implementation of Render::render_escaped 2020-07-10 00:32:58 +09:00
Kogia-sima 7d0538b244 Fix HTML escaping in char rendering 2020-07-10 00:30:25 +09:00
Kogia-sima 5c4c66f331 Add copyright notice in benchmark 2020-07-09 23:48:26 +09:00
Kogia-sima 2807340e59 Update Teams benchmark result 2020-07-09 23:44:30 +09:00
Kogia-sima f1ad6f3bd3 Escape HTML in std::write! benchmark
cc #22
2020-07-09 23:44:25 +09:00
Kogia-sima 6ab65f4247 Use itoap crate to render integers 2020-07-08 22:26:47 +09:00
Kogia-sima d86a35cbd6 Fix Integer::MAX_LEN for usize and isize 2020-07-08 07:06:49 +09:00
Kogia-sima b46ffbe623 Optimize write_u128 for small integers 2020-07-08 05:55:03 +09:00
Kogia-sima 636633331b clippy 2020-07-05 13:33:56 +09:00
Kogia-sima 36be07bbc7 More compiler hints 2020-07-05 13:25:57 +09:00
Kogia-sima 8107bb84ca perf: More powerful small escape optimization 2020-07-04 22:32:33 +09:00
Kogia-sima e8beaef33b Bump version (0.1.1 => 0.1.2) 2020-07-04 06:17:09 +09:00
Kogia-sima 74ec8a86fc Merge branch 'perf/small_escape_optimization' 2020-07-03 02:05:08 +09:00
Kogia-sima 3375194a54 Update benchmark result 2020-07-03 02:02:01 +09:00
Kogia-sima b596baa69e Implement small escape optimization 2020-07-03 01:58:50 +09:00
Kogia-sima a885f08d73 Update benchmark result 2020-07-03 01:02:35 +09:00
Kogia-sima 064d6cf2b6 Update benchmark code 2020-07-02 20:31:05 +09:00
Kogia-sima 200cb53a66 Update README 2020-07-02 18:28:22 +09:00
Kogia-sima ea080e8a6c impl Render for u128/i128 2020-06-20 21:21:51 +09:00
Kogia-sima ed8f237c4e Update README
[skip ci]
2020-06-19 19:13:24 +09:00
Kogia-sima 6cacdad287 feat: RenderError::new() method 2020-06-19 18:07:19 +09:00
Kogia-sima be293c8f90 Update doc comments 2020-06-19 15:40:30 +09:00
Kogia-sima 03413d1bcc Update documentation
[skip ci]
2020-06-19 15:01:07 +09:00
Kogia-sima faa8e661f7 Merge branch 'update-bench' 2020-06-19 12:34:33 +09:00
Kogia-sima 933d7850d7 Update benchmark results 2020-06-19 12:33:24 +09:00
Kogia-sima f40926122b feat: Add TemplateOnce::render_once_to_string method 2020-06-18 18:37:39 +09:00
Kogia-sima b5d035493f Bump version (0.1.0 => 0.1.1) 2020-06-18 18:04:02 +09:00
Kogia-sima 7c97d4e0ff Speedup floating point formatting 2020-06-18 17:51:59 +09:00
Kogia-sima dd4d31a48c Add new feature (perf-inline) 2020-06-18 17:28:10 +09:00
Kogia-sima bc4bb47082 feat: register_escape_fn API 2020-06-18 17:25:04 +09:00
Kogia-sima 0e99d66840 Fix sailfish template for teams benchmark 2020-06-18 17:13:08 +09:00
Kogia-sima 9a7f62e3ca Improve buffering performance 2020-06-18 17:12:55 +09:00
Kogia-sima 48eb36560a Resize icon for docs.rs 2020-06-18 01:04:10 +09:00
Kogia-sima 0f88c943bf fix: Handle capacity overflow 2020-06-18 00:49:59 +09:00