aboutsummaryrefslogtreecommitdiffstats
path: root/testing/Cargo.toml (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-01-12Generator: make `normalize_identifier` faster (#946)Libravatar René Kijewski1-0/+5
`normalize_identifier` is called quite often in the generator, once for every variable name or path element that is written. This PR aims to speed up the function by * using a per-length input string length replacement map * binary searching the replacement map instead of a linear search Diffent, but functionally equivalent implementations were compared: ```text * linear search in one big map: 348.44 µs * binary search in one big map: 334.46 µs * linear search in a per-length map: 178.84 µs * binary search in a per-length map: 154.54 µs * perfect hashing: 170.87 µs ``` The winner of this competition is "binary search in a per-length map". It does not introduce new dependencies, but has the slight disadvantage that it uses one instance of `unsafe` code. I deem this disadvantage acceptable, though. Nb. It was also tested if a variant that only stores the replaced string would be faster. This "optimization" proved to be slower for all implementations except "binary search in a per-length map", for which it has the same runtime. Without a clear advantage to use the "optimized version", I chose to use the more easy to read slice of tuples variant. Obviously, for all measurements: YMMV.
2023-11-30build(deps): update comrak requirement from 0.18 to 0.20Libravatar dependabot[bot]1-1/+1
Updates the requirements on [comrak](https://github.com/kivikakk/comrak) to permit the latest version. - [Release notes](https://github.com/kivikakk/comrak/releases) - [Changelog](https://github.com/kivikakk/comrak/blob/main/changelog.txt) - [Commits](https://github.com/kivikakk/comrak/compare/0.18.0...0.20.0) --- updated-dependencies: - dependency-name: comrak dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2023-11-30Upgrade to comrak 0.19Libravatar Dirkjan Ochtman1-1/+1
2023-09-29Add MSRV checking in CILibravatar Dirkjan Ochtman1-1/+1
Bump MSRV to 1.65 for the use of let .. else.
2023-05-24Update criterion requirement from 0.4 to 0.5Libravatar dependabot[bot]1-1/+1
Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version. - [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0) --- updated-dependencies: - dependency-name: criterion dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2023-05-20Upgrade to comrak 0.18Libravatar Dirkjan Ochtman1-1/+1
2023-03-28Update comrak to 0.17Libravatar Dirkjan Ochtman1-1/+1
2023-03-03Bump versions for Askama 0.12 (#784)Libravatar Dirkjan Ochtman1-1/+1
2023-01-30Update comrak dependency to 0.16Libravatar René Kijewski1-1/+1
2023-01-30Apply clippy suggestions for 1.67 (#769)Libravatar Dirkjan Ochtman1-1/+2
2023-01-24Update `ui` test for trybuild 1.0.76Libravatar René Kijewski1-1/+1
In <https://github.com/dtolnay/trybuild/pull/219> the output of error messages was subtly changed, because they introduced a subdirectoy in their temp path. This PR fixes the mismatch between the expected and the actual output.
2022-11-15Update comrak requirement from 0.14 to 0.15Libravatar dependabot[bot]1-1/+1
Updates the requirements on [comrak](https://github.com/kivikakk/comrak) to permit the latest version. - [Release notes](https://github.com/kivikakk/comrak/releases) - [Changelog](https://github.com/kivikakk/comrak/blob/main/changelog.txt) - [Commits](https://github.com/kivikakk/comrak/compare/0.14.0...0.15.0) --- updated-dependencies: - dependency-name: comrak dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2022-10-21Version bump in README and bookLibravatar Allan Zhang1-1/+1
I was going through the book when I saw the version was still 0.8. This commit ensures all references to Askama version are to 0.11.2. Most of them already were. Merge whenever appropriate for release, #722 related
2022-09-26Update criterion requirement from 0.3 to 0.4 (#721)Libravatar dependabot[bot]1-1/+1
Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version. - [Release notes](https://github.com/bheisler/criterion.rs/releases) - [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/bheisler/criterion.rs/compare/0.3.0...0.4.0) --- updated-dependencies: - dependency-name: criterion dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-20Update to comrak v0.14Libravatar René Kijewski1-1/+1
2022-06-07Update comrak requirement from 0.12 to 0.13Libravatar dependabot[bot]1-1/+1
Updates the requirements on [comrak](https://github.com/kivikakk/comrak) to permit the latest version. - [Release notes](https://github.com/kivikakk/comrak/releases) - [Changelog](https://github.com/kivikakk/comrak/blob/main/changelog.txt) - [Commits](https://github.com/kivikakk/comrak/compare/0.12.0...0.13.0) --- updated-dependencies: - dependency-name: comrak dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07Add markdown filterLibravatar René Kijewski1-1/+4
2022-01-31Use exact trybuild versionLibravatar René Kijewski1-1/+1
Sometimes for no obvious reason an old version is selected and the output is different in just about every ui test. Just pin it to the currently newest version and test if an updated version still works when a new version gets released.
2021-08-21Bump version numbers in anticipation of beta releaseLibravatar Dirkjan Ochtman1-1/+1
2021-07-02Fix expected error message for missing fileLibravatar René Kijewski1-0/+1
rust-lang/rust#82069 made error message that stem macro invocations more verbose. Since Rust 1.54 (currently in beta) the message includes the name of the offending macro. This PR uses version_check to select the appropriate expected error message.
2020-11-02Use `syn::Error::to_compile_error` and add trybuild ui test (#374)Libravatar msrd01-0/+1
2020-04-23Set publish = false on testing crateLibravatar Dirkjan Ochtman1-0/+1
2020-01-29Move Iron integration into a separate askama_iron crateLibravatar Dirkjan Ochtman1-5/+1
2020-01-29Move Gotham integration into separate askama_gotham crateLibravatar Dirkjan Ochtman1-5/+1
2020-01-29Move Rocket integration into askama_rocket crateLibravatar Dirkjan Ochtman1-2/+0
2020-01-29Move Actix-Web integration into separate askama_actix crateLibravatar Dirkjan Ochtman1-6/+1
2020-01-27Disable Gotham's default featuresLibravatar Dirkjan Ochtman1-1/+1
2020-01-27Disable rocket's default featuresLibravatar Dirkjan Ochtman1-1/+1
2020-01-11upgrade dependencies(actix-web 0.7 -> 2)Libravatar DCjanus1-3/+5
2019-08-26Update criterion requirement from 0.2 to 0.3Libravatar dependabot-preview[bot]1-1/+1
Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version. - [Release notes](https://github.com/bheisler/criterion.rs/releases) - [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/bheisler/criterion.rs/compare/0.2.0...0.3.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-01-11Remove rerun_if_templates_changed and update README.Libravatar Maarten de Vries1-3/+0
2018-12-10Add Gotham tests to `full` feature in testing crateLibravatar Kellen Frodelius-Fujimoto1-1/+1
2018-12-10Implement `IntoResponse` for `Template`, allowing them to be used in ↵Libravatar Kellen Frodelius-Fujimoto1-0/+4
`gotham` handlers.
2018-12-08Upgrade to 2018 editionLibravatar Dirkjan Ochtman1-0/+1
2018-12-08Upgrade to Rocket 0.4Libravatar Dirkjan Ochtman1-3/+2
2018-11-04Disable tests that need dependencies by defaultLibravatar Dirkjan Ochtman1-7/+12
2018-07-22Work around conflicting dependencies for actix-web and rocketLibravatar Dirkjan Ochtman1-6/+7
2018-07-22Tests for actix_webLibravatar Ryan McGrath1-2/+4
2018-06-28Add benchmarks to the Askama repoLibravatar Dirkjan Ochtman1-0/+5
2018-01-29`build = "build.rs"` is no longer necessaryLibravatar Paul Woolcock1-1/+0
For all rust versions >= 1.19, cargo will assume `build = "build.rs"` if it sees a `build.rs` file in the same directory as the `Cargo.toml`
2018-01-05relax the version specificationLibravatar Hajime Fukuda1-1/+1
2017-08-24Clean up order in Cargo manifestsLibravatar Dirkjan Ochtman1-2/+2
2017-08-23Add test for Rocket supportLibravatar Dirkjan Ochtman1-0/+6
2017-08-23Add test for Iron supportLibravatar Dirkjan Ochtman1-2/+3
2017-08-23Adding optional json filterLibravatar Anthony Nowell1-2/+3
2017-03-06Hide askama_derive dependency inside askama (fixes #2)Libravatar Dirkjan Ochtman1-1/+0
2017-03-03Update version numbers and dependenciesLibravatar Dirkjan Ochtman1-3/+3
2017-02-17Bring back path for iternal dependenciesLibravatar Dirkjan Ochtman1-3/+3
2017-02-15Fix askama version in testing crateLibravatar Dirkjan Ochtman1-3/+3
2017-02-08Move build script helper code into askama crateLibravatar Dirkjan Ochtman1-0/+3