81 Commits

Author SHA1 Message Date
René Kijewski
661c38cdc6 ci: fix up to #380 2025-03-23 23:52:04 +01:00
René Kijewski
35a1be81af ci: ensure that github CI config is safe using zizmor
Zizmor: <https://woodruffw.github.io/zizmor/>
2025-03-23 23:25:08 +01:00
René Kijewski
f564e724e1 Revive askama_escaped
We adopted `askama_escape` with the other askama crates. It was not
updated for quite some time, but still gets 25k+ downloads / day Mon to
Fri.

This PR re-adds the crate using our current HTML escaping function.
2025-03-21 22:45:25 +01:00
René Kijewski
d8896bcc43 Re-enable Cluster-Fuzz in CI 2025-03-19 23:49:24 +01:00
Guillaume Gomez
3c4a2eb9b0 Comment out Cluster-Fuzz for now 2025-03-11 19:31:06 +01:00
Guillaume Gomez
3b52c907c3 Rename rinja into askama 2025-03-11 19:31:06 +01:00
René Kijewski
98cb4233e2 Make derive optional
This is the same as in e.g. `serde` with the feature of the same name.
If you manually depend on `rinja_derive`, then you can make better use
of your multi-core setup.
2025-02-09 17:47:17 +01:00
René Kijewski
44965f54f5 derive: add option to specify rinja path 2025-02-04 14:34:46 +01:00
René Kijewski
a101903871 Minor clean-ups
* add missing softlinks
* sorted `Cargo.toml`s in root and testing
* suppress warnings in expanded code
2025-01-29 12:30:52 +01:00
René Kijewski
5944ab9bef Implement enum variants 2025-01-26 02:23:51 +01:00
René Kijewski
78734c1e4d Add salvo example by translating the axum example 2025-01-13 19:53:50 +01:00
René Kijewski
bcf59ed305 Add poem example by translating the actix-web example 2025-01-13 13:54:45 +01:00
René Kijewski
861c59032d Add rocket example by translating the warp example 2025-01-13 13:08:02 +01:00
René Kijewski
42a82c4785 Add warp example by translating the axum example 2025-01-13 13:08:02 +01:00
René Kijewski
5bf465eb3c Add axum example by translating the actix-web example 2025-01-13 13:08:02 +01:00
René Kijewski
5b4df98ff6 ci: group checks in fast, avg and slow 2025-01-04 19:08:16 +01:00
René Kijewski
d254942dbc Add jinja2 tests to verify that jinja2 renders the same 2025-01-01 09:31:52 +01:00
René Kijewski
e7540e17a1 Add no-std and alloc-only tests 2024-12-21 18:53:44 +01:00
René Kijewski
bedc31797c Make #![no_std] compatible 2024-12-21 18:53:44 +01:00
René Kijewski
430b99bdac Fix clippy warnings in rust nightly 1.85 2024-12-11 19:50:29 +01:00
René Kijewski
69ad5ea026 Remove integration crates 2024-11-25 03:03:15 +01:00
Guillaume Gomez
8dd3fc9628
Merge pull request #238 from Kijewski/pr-is_ascii_whitespace
parser: use built-in whitespace trimming
2024-11-14 14:43:14 +01:00
René Kijewski
b76d1000b6 book: pin to mdbook v0.4.40 for now 2024-11-14 11:12:02 +01:00
René Kijewski
d3b9b6ea56 Raise MSRV to 1.80 2024-11-13 23:33:06 +01:00
René Kijewski
3abdf13f35 ci: add cluster-fuzz integration 2024-11-10 04:58:33 +01:00
René Kijewski
9cef402849 Add --feature full
`features = ["full"]` enables all features except integration crates.
2024-10-08 13:40:55 +02:00
René Kijewski
acd6a48557 ci: fix a few typos and add check
This PR adds `_typos.toml`, which lets `typos` ignore generated data.
Some filler texts are "fixed", too. It does not matter what the actual
text is.
2024-08-30 17:01:13 +02:00
René Kijewski
785aea3668 fuzz: add minified corpus after 1,000,000,000 runs 2024-08-29 17:05:42 +02:00
dependabot[bot]
95d9629f88
build(deps): bump actions/checkout from 2 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-20 09:11:41 +00:00
Guillaume Gomez
f87027fe1d
Merge pull request #144 from Kijewski/pr-doc_auto_cfg
doc: use `feature(doc_cfg, doc_auto_cfg)` everywhere
2024-08-20 11:10:30 +02:00
René Kijewski
d3138f48cb ci: test doc generation for all published packages 2024-08-20 07:44:47 +02:00
René Kijewski
2b173d99c1 ci: run dependabot daily 2024-08-20 07:00:11 +02:00
René Kijewski
8433e24917 filters: fuzzer for html escaping 2024-08-19 13:31:07 +02:00
René Kijewski
b62d558c21 parser: add fuzzer 2024-08-19 13:31:07 +02:00
René Kijewski
90096ef973 ci: sort elements in Cargo.toml 2024-08-13 19:17:37 +02:00
René Kijewski
d5a4f9ca2e ci: add DevSkim test to find oddities in the code 2024-08-13 18:29:06 +02:00
René Kijewski
5626e52d7e ci: move book generation testing into same workflow 2024-08-13 18:27:38 +02:00
René Kijewski
de7cf881bd ci: fix audit warnings 2024-08-13 18:27:29 +02:00
Guillaume Gomez
e8b2f069d6 Add 404 page 2024-07-28 17:42:08 +02:00
René Kijewski
429eae1663 Move integration crates in their own workspaces
Everytime you hit ctrl+s in VS code, the whole project in checked, which
normally is a nice thing, and I would not like to disable that in my
configuration.

But in rinja, the diffent integration crates don't work well with one
another and every single one will have compile errors in the automatic
check, because `rinja_derive` won't know what the relevant `rinja_xyz`
crate is. This renders the automatic check useless. Then it takes ages
to compile and recompile all transitively used `proc_macros`.

This PR moves all integration crates in there own, individual
workspaces. `cargo check` will ignore them unless you traverse manually
into their folders. The CI is set up to do just that.
2024-07-12 11:51:36 +02:00
René Kijewski
85330b353a Raise the MSRV to 1.71 2024-07-10 21:38:43 +02:00
René Kijewski
48d69bfb4c Move rinja_escape into rinja 2024-07-07 22:51:17 +02:00
René Kijewski
efcffeea78 Add example app 2024-07-07 02:24:03 +02:00
René Kijewski
1ce549d260 derive: add benchmark
This PR adds the crate "rinja_derive_standalone", which is just like
"rinja_derive", though not a "proc_macro". This way we can easily expose
it's internals for testing and benchmarking.

Right now, the PR is more or less a prove of concept, and it probably
needs a handful more useful benchmark use cases to be worth the hassle.
2024-06-22 02:49:01 +02:00
Guillaume Gomez
65a3da0035 Remove fuzzing CI testsuite for now 2024-06-17 17:31:23 +02:00
Guillaume Gomez
2d80cc3524 Rename everything to rinja 2024-06-17 15:58:52 +02:00
manunio
03690ab46b fuzz: trigger cifuzz only for askama_parser 2024-05-03 17:04:42 +02:00
manunio
2699ba4194 fuzz: Add cifuzz integration
Add cifuzz workflow action to have fuzzers build and run on each
PR. This is a service offered by oss-fuzz where askama already runs.
cifuzz can help catch shallow bugs, regressions and fuzzing build
issues before they are merged into the repository, to do this
fuzzing will be run for ~3min.
2024-05-02 23:06:08 +02:00
Dirkjan Ochtman
e5e9fc63a3 Remove tide integration 2024-03-06 11:01:51 +01:00
Dirkjan Ochtman
a5b55f2ea8 Remove hyper integration 2024-03-05 12:07:11 +01:00