Commit Graph

511 Commits

Author SHA1 Message Date
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 67f2bc2870 Merge branch 'master' into stable 2020-07-11 17:54:29 +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 5e02026459 Merge branch 'master' into stable 2020-07-04 06:17:21 +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 5187e57ad3 Merge commit 'b5d0354' into stable 2020-06-18 20:36:01 +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
Kogia-sima 6c9ad14e90 Merge commit '9681e6c' 2020-06-18 00:47:44 +09:00
Kogia-sima 9681e6c623 Change target name in examples/Cargo.toml 2020-06-17 00:53:12 +09:00
Kogia-sima 880cf9db5a
Merge pull request #13 from botika/master
Add unsafe attributes at yarte fixed bench
2020-06-17 00:36:42 +09:00
Kogia-sima 8d897b828f Minimum supported Rust version in README 2020-06-17 00:08:40 +09:00
Kogia-sima b773a28e2a Update benchmark result 2020-06-17 00:00:12 +09:00
Kogia-sima a48b67433e Merge pull request #12 from 'botika/master' 2020-06-16 23:33:45 +09:00
Kogia-sima ace9472d39 skip test in 1.42.0 2020-06-16 22:59:58 +09:00
Kogia-sima f094b0671d Avoid using primitive::MIN/primitive::MAX
These associated constants is not supported in 1.42
2020-06-16 22:47:26 +09:00
Kogia-sima 41001ef0ee Fix Rust version in .travis.yml 2020-06-16 22:32:49 +09:00
Kogia-sima 0cfcb14624 refactor: Rename private trait method 2020-06-16 22:27:08 +09:00
Kogia-sima 9e2952d92d Add Buffer::render_internal method to speedup reserve method 2020-06-16 20:00:35 +09:00
Kogia-sima 441bceb412 Downgrade proc-macro2 minimum version in sailfish-macros 2020-06-16 19:46:38 +09:00
Kogia-sima 057450a5fb Test on minimum supported Rust version (Travis CI) 2020-06-16 19:41:31 +09:00
Juan Aguilar Santillana 1aca11acfe Add unsafe attributes at yarte fixed bench 2020-06-16 08:23:24 +00:00
Juan Aguilar Santillana d07161918b Add and specify behaviours for yarte benches 2020-06-16 07:01:04 +00:00
Juan Aguilar Santillana 3a6ef334d4 Use bytes crate as buffer 2020-06-16 06:46:37 +00:00
Kogia-sima 0f3d0f7705 Fix documentation about HTML escaping 2020-06-16 13:51:18 +09:00
Kogia-sima 455cb55de6 Update benchmark result 2020-06-16 05:51:49 +09:00
Kogia-sima 98dc405da1 Add more libraries for benchmark 2020-06-16 05:51:37 +09:00
Kogia-sima f2d5eb2b73 Bump version (0.0.5 => 0.1.0) 2020-06-15 12:17:19 +09:00
Kogia-sima e00fe1804d Update Cargo.lock in benches/ 2020-06-15 12:10:49 +09:00
Kogia-sima 1379f9b3b3 Escape single quote (')
It seems that EJS escapes this character.
2020-06-15 12:06:14 +09:00
Kogia-sima 4803792d4c Merge branch 'feature/config_file' 2020-06-15 07:31:34 +09:00
Kogia-sima d1b6d2559a feat: New feature flag (config) 2020-06-15 06:44:49 +09:00
Kogia-sima 6865b85159 Update documents
- Add `Configuration file` section
2020-06-15 06:25:56 +09:00
Kogia-sima 76df7e6e1b Update test for 2d994be 2020-06-15 05:37:02 +09:00
Kogia-sima 2d994be4ff feat: Global configuration file 2020-06-15 05:36:39 +09:00
Kogia-sima 5b4c13af3e dep: Add dependency (yaml-rust) 2020-06-14 22:07:28 +09:00
Kogia-sima 25364a6bcc Enhanced error message 2020-06-14 17:30:36 +09:00
Kogia-sima 97f6a74248 Checks the return value of alloc function 2020-06-14 13:45:20 +09:00
Kogia-sima 4fef20fa86 Add crate-level documentation 2020-06-14 12:29:45 +09:00
Kogia-sima a8b3856977 Fix logo icon url 2020-06-14 02:50:24 +09:00
Kogia-sima 008b1bf6ea Add logo icon for docs.rs 2020-06-14 02:47:20 +09:00
Kogia-sima 733e1a6c63 Bump version (0.0.4 => 0.0.5) 2020-06-13 23:18:07 +09:00