aboutsummaryrefslogtreecommitdiffstats
path: root/testing/Cargo.toml (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Generator: make `normalize_identifier` faster (#946)Libravatar René Kijewski2024-01-121-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.
* build(deps): update comrak requirement from 0.18 to 0.20Libravatar dependabot[bot]2023-11-301-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>
* Upgrade to comrak 0.19Libravatar Dirkjan Ochtman2023-11-301-1/+1
|
* Add MSRV checking in CILibravatar Dirkjan Ochtman2023-09-291-1/+1
| | | | Bump MSRV to 1.65 for the use of let .. else.
* Update criterion requirement from 0.4 to 0.5Libravatar dependabot[bot]2023-05-241-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>
* Upgrade to comrak 0.18Libravatar Dirkjan Ochtman2023-05-201-1/+1
|
* Update comrak to 0.17Libravatar Dirkjan Ochtman2023-03-281-1/+1
|
* Bump versions for Askama 0.12 (#784)Libravatar Dirkjan Ochtman2023-03-031-1/+1
|
* Update comrak dependency to 0.16Libravatar René Kijewski2023-01-301-1/+1
|
* Apply clippy suggestions for 1.67 (#769)Libravatar Dirkjan Ochtman2023-01-301-1/+2
|
* Update `ui` test for trybuild 1.0.76Libravatar René Kijewski2023-01-241-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.
* Update comrak requirement from 0.14 to 0.15Libravatar dependabot[bot]2022-11-151-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>
* Version bump in README and bookLibravatar Allan Zhang2022-10-211-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
* Update criterion requirement from 0.3 to 0.4 (#721)Libravatar dependabot[bot]2022-09-261-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>
* Update to comrak v0.14Libravatar René Kijewski2022-07-201-1/+1
|
* Update comrak requirement from 0.12 to 0.13Libravatar dependabot[bot]2022-06-071-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>
* Add markdown filterLibravatar René Kijewski2022-02-071-1/+4
|
* Use exact trybuild versionLibravatar René Kijewski2022-01-311-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.
* Bump version numbers in anticipation of beta releaseLibravatar Dirkjan Ochtman2021-08-211-1/+1
|
* Fix expected error message for missing fileLibravatar René Kijewski2021-07-021-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.
* Use `syn::Error::to_compile_error` and add trybuild ui test (#374)Libravatar msrd02020-11-021-0/+1
|
* Set publish = false on testing crateLibravatar Dirkjan Ochtman2020-04-231-0/+1
|
* Move Iron integration into a separate askama_iron crateLibravatar Dirkjan Ochtman2020-01-291-5/+1
|
* Move Gotham integration into separate askama_gotham crateLibravatar Dirkjan Ochtman2020-01-291-5/+1
|
* Move Rocket integration into askama_rocket crateLibravatar Dirkjan Ochtman2020-01-291-2/+0
|
* Move Actix-Web integration into separate askama_actix crateLibravatar Dirkjan Ochtman2020-01-291-6/+1
|
* Disable Gotham's default featuresLibravatar Dirkjan Ochtman2020-01-271-1/+1
|
* Disable rocket's default featuresLibravatar Dirkjan Ochtman2020-01-271-1/+1
|
* upgrade dependencies(actix-web 0.7 -> 2)Libravatar DCjanus2020-01-111-3/+5
|
* Update criterion requirement from 0.2 to 0.3Libravatar dependabot-preview[bot]2019-08-261-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>
* Remove rerun_if_templates_changed and update README.Libravatar Maarten de Vries2019-01-111-3/+0
|
* Add Gotham tests to `full` feature in testing crateLibravatar Kellen Frodelius-Fujimoto2018-12-101-1/+1
|
* Implement `IntoResponse` for `Template`, allowing them to be used in ↵Libravatar Kellen Frodelius-Fujimoto2018-12-101-0/+4
| | | | `gotham` handlers.
* Upgrade to 2018 editionLibravatar Dirkjan Ochtman2018-12-081-0/+1
|
* Upgrade to Rocket 0.4Libravatar Dirkjan Ochtman2018-12-081-3/+2
|
* Disable tests that need dependencies by defaultLibravatar Dirkjan Ochtman2018-11-041-7/+12
|
* Work around conflicting dependencies for actix-web and rocketLibravatar Dirkjan Ochtman2018-07-221-6/+7
|
* Tests for actix_webLibravatar Ryan McGrath2018-07-221-2/+4
|
* Add benchmarks to the Askama repoLibravatar Dirkjan Ochtman2018-06-281-0/+5
|
* `build = "build.rs"` is no longer necessaryLibravatar Paul Woolcock2018-01-291-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`
* relax the version specificationLibravatar Hajime Fukuda2018-01-051-1/+1
|
* Clean up order in Cargo manifestsLibravatar Dirkjan Ochtman2017-08-241-2/+2
|
* Add test for Rocket supportLibravatar Dirkjan Ochtman2017-08-231-0/+6
|
* Add test for Iron supportLibravatar Dirkjan Ochtman2017-08-231-2/+3
|
* Adding optional json filterLibravatar Anthony Nowell2017-08-231-2/+3
|
* Hide askama_derive dependency inside askama (fixes #2)Libravatar Dirkjan Ochtman2017-03-061-1/+0
|
* Update version numbers and dependenciesLibravatar Dirkjan Ochtman2017-03-031-3/+3
|
* Bring back path for iternal dependenciesLibravatar Dirkjan Ochtman2017-02-171-3/+3
|
* Fix askama version in testing crateLibravatar Dirkjan Ochtman2017-02-151-3/+3
|
* Move build script helper code into askama crateLibravatar Dirkjan Ochtman2017-02-081-0/+3
|