Repository navigation
v0.1.0
First public release of django-rust-templates, a drop-in replacement for Django's template engine, written in Rust.
TEMPLATES = [{"BACKEND": "django_rust_templates.RustTemplates", ...}]- Re-implements the Django template language natively: lexer, parser, renderer, and the built-in tags and filters.
- Byte-identical output to stock Django, and 100% of Django's own template test suite passes on Django 5.2 and 6.1.
- About 14x faster rendering and template compilation on the project benchmark (
benchmarks/bench.py). - Custom and third-party tag libraries keep working:
simple_tagandinclusion_tagrun natively, and other tags are bridged to their Python code. - Prebuilt wheels for CPython 3.12–3.14 on Linux x86_64 and aarch64 (manylinux and musllinux). Requires Django ≥ 5.2.
pip install django-rust-templates