Skip to content

Releases: kaj/ructe

Release 0.17.0

22 Jul 13:27
@kaj kaj
Compare
Choose a tag to compare

Released 2023-07-22.

  • Added a check that no more than one of the http-types, mime02, or mime03 features are enabled (PR #124). Thanks @rustafarian-dev.
  • Changed the writer type from W: &mut Write to just W: Write (PR #125). Thanks @kornelski!
  • Fixed handling of MULTI_WORD_CONSTANTS in templates (Issue #129, PR #130). Thanks @wezm!
  • More ways to create a working rust symbol name from a "strange" static file name. Illegal characters are replaced by _, and if the file name starts with a number it is prefixed with n (Issue #82, PR #132). Thanks @Aedius for reporting!
  • Fixed more clippy lints (PR #123, #127). Thanks @vbrandl!
  • Updated rsass to 0.28.0 and itertools to 0.11.0.

Release 0.16.1

28 Jan 18:17
@kaj kaj
Compare
Choose a tag to compare

Released 2023-01-28

  • Msrv is 1.58.1, so let ructe itself use rust edition 2021.
  • Use format strings with inline captures (in ructe itself and generated code).

Release 0.16.0

22 Jan 22:22
@kaj kaj
Compare
Choose a tag to compare

Released 2023-01-22.

  • Removed backwards compatible aliases for template functions.
    In ructe 0.7.2 and earlier, a template file page.rs.html resulted in a rust function templates::page(...).
    In 0.7.2, that was changed to templates::page_html(...) and the old name was kept as a deprecated alias.
    However, since the template functions are usually defined within the same crate that defines them, the deprecation warning has usually not been shown, and this removal may still be a surprise to some users (it was even used in examples up to this change).
  • Allow more lifetime arguments to templates in template arguments (PR #122, fixes #121). Thanks to @wezm!
  • Added axum example (PR #118). Thanks to @vbrandl!
  • Updated rsass to 0.27.0 and base64 to 0.21.0.
  • Updated dependencies in examples: actix-web 4.2.1, axum 0.6.2, env_logger 0.10.0,
  • Dropped support for rust edition 2015 in crates that directly uses ructe.

Release 0.15.0

18 Sep 19:46
@kaj kaj
Compare
Choose a tag to compare
  • Breaking change: Most methods of StaticFiles now supports method chaining, by returning Result<&mut Self>, making typical build scripts nicer (PR #115).
  • Update (optional) rsass to 0.26 (PR #116).
  • Some doc improvements.

Release 0.14.0 - 2022-02-06

06 Feb 14:23
@kaj kaj
Compare
Choose a tag to compare
  • Breaking change: The generated template functions have a simpler signature.
  • Allow litetimes in template argument types. Issue #106, PR #110.
  • Improve error handling in optional warp support, PR #109.
  • Current stable rust is 1.57, MSRV is now 1.46.0.
  • Update nom dependency to 7.1.0.
  • Update optional rsass to 0.23.0.
  • Update env_logger to 0.9 and gotham to 0.7.1 in examples
  • Dropped support for warp 0.2 (the warp02 feature and example).

Thanks to @JojiiOfficial for reporting #106.

Release 0.13.4

25 Jun 20:10
@kaj kaj
Compare
Choose a tag to compare

2021-06-25.

  • Allow else if after an @if block in templates. PR #104, fixes #81.
  • Add a missing } in doc example. PR #102.
  • Update optional rsass to 0.22.0.
  • Updated gotham example to 0.6.0.

Thanks @bearfrieze for #102 and @Aunmag for #81.

Tested with rustc 1.53.0, 1.48.0, 1.46.0, 1.44.1, 1.54.0-beta.1 and 1.55.0-nightly (7c3872e6b 2021-06-24).

Release 0.13.2

14 Mar 19:35
@kaj kaj
Compare
Choose a tag to compare
  • Improve formatting of README, PR #100.
  • Update nom to 6.1.0, which raises the MSRV to 0.44
  • Update base64 to 0.13 and itertools to 0.10.
  • Update optional rsass to 0.19.0.
  • Add warp 0.3 feature and example.
  • Add tide 0.16 feaure and update example.
  • Testing is now done with github actions rather than Travis CI.
  • Minor clippy fixes, PR #99.

Thanks to @ibraheemdev for PR #100.

Tested with rustc 1.50.0 (cb75ad5db 2021-02-10), 1.48.0 (7eac88abb 2020-11-16), 1.46.0 (04488afe3 2020-08-24), 1.44.1 (c7087fe00 2020-06-17), 1.51.0-beta.6 (6a1835ad7 2021-03-12), 1.52.0-nightly (acca81892 2021-03-13)

Release 0.13.0

15 Nov 17:42
@kaj kaj
Compare
Choose a tag to compare
  • Try to improve incremental compile times of projects using ructe by only writing fils if their contents actually changed. Also some code cleanup. PR #97.
  • Update ructe itself to use edition 2018 (it is still useable for projects using both editios). PR #98.
  • Fix StaticFiles::add_files_as for empty to argument and add some more documentation for it. Fixes issue #96.
  • Update optional rsass dependency to 0.16.0.
  • Add optional support for tide 0.14 and 0.15.
  • Update gotham to 0.5 and axtix-web to 3.2 in examples.

Tested with rustc 1.47.0 (18bf6b4f0 2020-10-07), 1.42.0 (b8cedc004 2020-03-09), 1.40.0 (73528e339 2019-12-16), 1.48.0-beta.8 (121901459 2020-11-08), and 1.50.0-nightly (98d66340d 2020-11-14)

Release 0.12.0

14 Aug 16:23
@kaj kaj
Compare
Choose a tag to compare
  • Issue #79, PR #80 and #94: Support Tide framework by a feature and an example.
  • PR #91: Update basic examples to edition 2018.
  • Issue #68, PR #90: Don't eat whitespace after a for loop.
  • Issue #66, PR #89: Fix parse error for nested braces in expressions.
  • PR #84: Use std::ascii::escape_default.
  • PR #87: Provide ToHtml::to_buffer()
  • Forbid unsafe and undocumented code.
  • The build is on https://travis-ci.com/kaj/ructe now.
  • Internal cleanup.

Thanks to @Aunmag and @prabirshrestha for reported issues and contributed code.

Tested with rustc 1.45.2 (d3fb005a3 2020-07-31), 1.42.0 (b8cedc004 2020-03-09), 1.42.0 (b8cedc004 2020-03-09), 1.46.0-beta.4 (32c481e15 2020-08-09), and 1.47.0-nightly (81dc88f88 2020-08-13).

Release 0.11.4

25 Apr 15:50
@kaj kaj
Compare
Choose a tag to compare
  • Improve @match parsing.