Skip to content

Releases: kaj/ructe

Release 0.6.0

14 Mar 14:16
@kaj kaj
Compare
Choose a tag to compare
  • 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

22 Feb 20:20
@kaj kaj
Compare
Choose a tag to compare
  • 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

16 Feb 21:05
@kaj kaj
Compare
Choose a tag to compare
  • 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

04 Jan 23:47
@kaj kaj
Compare
Choose a tag to compare
  • 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

30 Nov 21:33
@kaj kaj
Compare
Choose a tag to compare
  • 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

04 Nov 19:00
@kaj kaj
Compare
Choose a tag to compare
  • 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

03 Nov 11:33
@kaj kaj
Compare
Choose a tag to compare
  • 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

06 Sep 15:54
@kaj kaj
Compare
Choose a tag to compare
  • 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

01 Aug 16:22
@kaj kaj
Compare
Choose a tag to compare
  • 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).

Release 0.4.0

05 Jul 20:46
@kaj kaj
Compare
Choose a tag to compare

Changes since v0.3.16 includes:

  • Template syntax:

    • Allow local ranges (i.e. 2..7) in loop expressions.
    • Allow underscore rust names. There is use for unused variables in
      templates, so allow names starting with underscore.
    • Issue #24 / PR #28: Allow logic operators in @if ... expressions.
    • Issue #25 / PR #27: Allow much more in parentehsis expressions.
  • Improved examples:

    • A new design for the framework examples web page, using svg graphics.
    • Improve code and inline documentation of iron and nickel examples.
    • Add a similar example with the Gotham framework.
  • Recognize .svg static files.

  • Allocate much fewer strings when parsing expressions in templates.

  • PR #26: use write_all rather than the write! macro in generated
    code, contributed by @kornelski

  • Fix application/octet-stream MIME type. Contributed by @kornelski.

  • Use write_str/write_all when generating output. Contributed by
    @kornelski.

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.0 (3eda71b00 2018-06-19), 1.28.0-beta.6 (915ac6602 2018-06-30), and 1.28.0-nightly (e3bf634e0 2018-06-28).