Releases: kaj/ructe
Release 0.6.2
-
Improved documentation and examples.
All public items now have documentation. -
Improve build-time error handling.
If there is an error involving an environment variable, include the variable name in the message. -
Take more Path build-time arguements AsRef.
Make it possible to simpl use a string literal as a path in more places.
Tested with rustc 1.33.0 (2aa4c46cf 2019-02-28), 1.31.1 (b6c32da9b 2018-12-18), 1.30.1 (1433507eb 2018-11-07), 1.29.0 (aa3ca1994 2018-09-11), 1.28.0 (9634041f0 2018-07-30), 1.27.2 (58cc626de 2018-07-18), 1.26.2 (594fb253c 2018-06-01), 1.34.0-beta.1 (744b374ab 2019-02-26), and 1.35.0-nightly (52e885628 2019-03-15).
Release 0.6.0
-
Provide a warp feature.
All my warp + ructe projects use the same RenderRucte extension trait to make calling the templates on generating responses a bit clearer. Provide that trait here as an optional feature.
-
Make the build scripts nicer.
Provide a struct Ructe with methods to handle the red tape from build scripts. Make the remaining parts of the build scripts shorter and more to the point.
-
Use edition 2018 in warp example.
-
Fix examples lang attribute.
A whole bunch of examples had the html lang attibute set to sv when the content is actually in English.
Tested with 1.33.0 (2aa4c46cf 2019-02-28), 1.31.1 (b6c32da9b 2018-12-18), 1.30.1 (1433507eb 2018-11-07), 1.29.0 (aa3ca1994 2018-09-11), 1.28.0 (9634041f0 2018-07-30), 1.27.2 (58cc626de 2018-07-18), 1.26.2 (594fb253c 2018-06-01), 1.34.0-beta.1 (744b374ab 2019-02-26), and 1.35.0-nightly (719b0d984 2019-03-13).
Release 0.5.10
- Convert more file names to rust names (a file name might contain dashes and dots that needs to be converted to something else (underscore) to work in a rust name).
- Find new files in static dirs (add a cargo:rerun-if-changed line for the directory itself).
Tested with rustc 1.32.0 (9fda7c223 2019-01-16), 1.31.1 (b6c32da9b 2018-12-18), 1.30.1 (1433507eb 2018-11-07), 1.29.0 (aa3ca1994 2018-09-11), 1.28.0 (9634041f0 2018-07-30), 1.27.2 (58cc626de 2018-07-18), 1.26.2 (594fb253c 2018-06-01), 1.33.0-beta.9 (1f84156d2 2019-02-20), 1.34.0-nightly (633d75ac1 2019-02-21).
Release 0.5.8
- Adapt to rsass 0.9.8 (the sass feature now requires a compiler that supports edition 2018).
- More compact static data, using byte strings instead of numbers. (i.e. b"\xef\xbb\xbfabc" rather than [239, 187, 191, 65, 66, 67]).
- Minor internal cleanup.
- Update bytecount dependency.
Release 0.5.6
- PR #41: Benchmark and improve performance of html-escaping.
- PR #39: Silence a clippy warning about old syntax in silencing another warning.
- Update itertools to 0.8 (and env_logger in warp example)
Thanks to @kornelski for PRs #39 and #41.
Tested with rustc 1.31.1 (b6c32da9b 2018-12-18), 1.29.0 (aa3ca1994 2018-09-11), 1.28.0 (9634041f0 2018-07-30), 1.27.2 (58cc626de 2018-07-18), 1.26.2 (594fb253c 2018-06-01), 1.32.0-beta.11 (e64fee6a3 2019-01-04), and 1.33.0-nightly (c0bbc3927 2019-01-03).
Release 0.5.4
- Support struct unpacking in
@if
and@for
expressions.
Tested with rustc 1.30.1 (1433507eb 2018-11-07), 1.29.0 (aa3ca1994 2018-09-11), 1.28.0 (9634041f0 2018-07-30), 1.27.2 (58cc626de 2018-07-18), 1.26.2 (594fb253c 2018-06-01), 1.31.0-beta.19 (42053f9f0 2018-11-26), and 1.32.0-nightly (3e90a12a8 2018-11-29).
Release 0.5.2
- Special case for empty sub-templates, mainly to avoid a warning when compiling generated code.
- Update md5 to 0.6.
- Update gotham in example to 0.3.0.
- Use mime 0.3 in static example, and remove mime03 example.
Tested with rustc 1.30.0 (da5f414c2 2018-10-24), 1.29.0 (aa3ca1994 2018-09-11), 1.28.0 (9634041f0 2018-07-30), 1.27.2 (58cc626de 2018-07-18), 1.26.2 (594fb253c 2018-06-01), 1.31.0-beta.4 (04da282bb 2018-11-01), and 1.32.0-nightly (04fdb44f5 2018-11-03).
Release 0.5.0
- Support multiple Content arguments.
Impl Trait is used to make sub-templates as arguments less magic. This way we can also support more than one Content argument to the same template. - PR #36 / Issue #35: Test and fix support for edition=2018.
Module paths used by generated code are now compatible with the 2018 edition. Also, some code in examples and documentation use more 2018-friendly module paths. - PR 34: Use bytecount rather than simple counting, elide one lifetime.
- Update nom to 4.1.1, base64 to 0.10.0, bytecount to 0.4, and md5 to 0.5.
- Update iron to 0.6 and warp to 0.1.9 in examples.
- Minor cleanup in nickel example.
Thanks to @KlossPeter for PR #34 and @matthewpflueger for issue #35.
Tested with rustc 1.30.0 (da5f414c2 2018-10-24), 1.28.0 (9634041f0 2018-07-30), 1.27.2 (58cc626de 2018-07-18), 1.26.2 (594fb253c 2018-06-01), 1.31.0-beta.4 (04da282bb 2018-11-01), and 1.32.0-nightly (8b096314a 2018-11-02).
Release 0.4.4
- Test and fix #33, unduplicate curly brackets.
- Add
@@
escape, producing a single@
sign. Suggested in #33. - Some more mime types for static files.
- Update dependencies: nom 4.0, rsass 0.9.0
- Add a warp example, and link to kaj/warp-diesel-ructe-sample
Thanks to @dermetfan for reporting issue #33.
Tested with rustc 1.28.0 (9634041f0 2018-07-30), 1.27.2 (58cc626de 2018-07-18), 1.26.2 (594fb253c 2018-06-01), 1.25.0 (84203cac6 2018-03-25), 1.24.1 (d3ae9a9e0 2018-02-27), 1.23.0 (766bd11c8 2018-01-01), 1.29.0-beta.12 (4dcf42f98 2018-09-04), 1.30.0-nightly (6e0f1cc15 2018-09-05).
Release 0.4.2
- Test and fix issue #31, comments in body.
Thanks to @jo-so for reporting the issue, and for the test.
Tested with rustc 1.23.0 (766bd11c8 2018-01-01), 1.24.1 (d3ae9a9e0 2018-02-27), 1.25.0 (84203cac6 2018-03-25), 1.26.2 (594fb253c 2018-06-01), 1.27.2 (58cc626de 2018-07-18), 1.29.0-beta.1 (a3bef3daf 2018-07-31), 1.29.0-nightly (e94df4acb 2018-07-31).