Releases: kaj/ructe
Release 0.17.2
Released 2024-06-30
- The main branch in git is now
main
rather thanmaster
. - Update clippy lint usage to get rid of warnings in all code using
ructe (PR #137). Thanks @vbradl! - Identified a problem with
Content
parameters sent through
intermediate templates, and documented a workaround for it (Issue
#134, PR #141). Thanks @drehren and @kornelski. - The
axum
test is mentioned in [README.md
] (PR #138).
Thanks @abd0-omar! - Update
base64
to 0.22.1 anditertools
dependency to 0.13.0. - MSRV is now 1.61.0.
Release 0.17.0
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 justW: 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 withn
(Issue #82, PR #132). Thanks @Aedius for reporting! - Fixed more clippy lints (PR #123, #127). Thanks @vbrandl!
- Updated
rsass
to 0.28.0 anditertools
to 0.11.0.
Release 0.16.1
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
Released 2023-01-22.
- Removed backwards compatible aliases for template functions.
In ructe 0.7.2 and earlier, a template filepage.rs.html
resulted in a rust functiontemplates::page(...)
.
In 0.7.2, that was changed totemplates::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
Release 0.14.0 - 2022-02-06
- 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
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
- 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
- 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 emptyto
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
- 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).