aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/lib.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-03-23Reduce askama_derive to a single re-exportLibravatar René Kijewski1-99/+1
All the hard work in askama_derive was actually done in askama_shared. This PR removes the back-and-forth interaction between the two crates. Now askama_derive is a single re-export of `#[derive(Template)]` which has to be done in a proc_macro crate. This most likely means that askama_derive is "final", unless another derive template needs to be introduced in the future.
2022-03-23Move handling of integrations into askama_sharedLibravatar René Kijewski1-14/+2
Before this PR the handling of integrations was done both by askama_shared and askama_derive. This diff lets askama_shared do the work. This will prevent problems like #629, when both packages might come out of sync.
2022-03-23Fix clippy warningLibravatar René Kijewski1-1/+1
2022-02-07Enable tracking of the offending span of an errorLibravatar René Kijewski1-4/+1
2022-02-03Replace custom Cow with actual CowLibravatar René Kijewski1-2/+3
2022-01-24Replace `&PathBuf` with `&Path`Libravatar René Kijewski1-3/+3
PathBuf is to String like Path is to str, so `&PathBuf` is a pointer to a pointer. Clippy does not likes that.
2022-01-12`&Option<T>` → `Option<&T>`Libravatar René Kijewski1-1/+1
2022-01-06Remove the iron integration from generatorLibravatar René Kijewski1-1/+0
Issue #527 removed the askama_iron package, but not the integration if someone uses askama_derive's feature with "iron". The old askama_iron crate uses askama v0.10, so it will still work.
2022-01-06Add `#![forbid(unsafe_code)]` to all crates except askama_escapeLibravatar René Kijewski1-0/+1
2022-01-06Add `#![deny(unreachable_pub)]` to all cratesLibravatar René Kijewski1-0/+1
2021-11-27Add Axum integrationLibravatar Michael Alyn Miller1-0/+1
2021-10-25Handle build hangs due to unintended template recursion. (#539)Libravatar Gaurav Tyagi1-0/+12
2021-07-01Stop eliding lifetimes in pathsLibravatar Dirkjan Ochtman1-2/+2
2021-06-14Fix needless borrowingLibravatar Dirkjan Ochtman1-1/+1
2020-11-02Use `syn::Error::to_compile_error` and add trybuild ui test (#374)Libravatar msrd01-4/+5
2020-11-02Improve error handling (see #368)Libravatar Dirkjan Ochtman1-18/+30
2020-07-28Add mendes integrationLibravatar Dirkjan Ochtman1-0/+1
2020-07-14alphabetize frameworksLibravatar Jacob Rothstein1-1/+1
2020-07-14askama tideLibravatar Jacob Rothstein1-0/+1
2020-01-29Move code generation into askama_sharedLibravatar Dirkjan Ochtman1-142/+12
2020-01-29Move input module into askama_sharedLibravatar Dirkjan Ochtman1-2/+1
2020-01-29Move parser into askama_sharedLibravatar Dirkjan Ochtman1-5/+1
2020-01-02Clean up clippy warningsLibravatar Dirkjan Ochtman1-0/+1
2019-03-18Create heritage for extends-only templates (fixes #224)Libravatar Dirkjan Ochtman1-1/+1
2018-12-08Use 2018 edition idiomsLibravatar Dirkjan Ochtman1-5/+2
2018-12-08Upgrade to 2018 editionLibravatar Dirkjan Ochtman1-5/+5
2018-12-07Fix cargo fmtLibravatar Juan Aguilar Santillana1-1/+2
2018-11-05Send debug output to stderr instead of stdoutLibravatar Dirkjan Ochtman1-2/+2
2018-10-07Improve variable name to better reflect its typeLibravatar Dirkjan Ochtman1-2/+2
2018-10-05Add changing delimiters supportLibravatar bott1-5/+8
2018-09-14Update formatting for rust 1.29.0 rustfmtLibravatar Dirkjan Ochtman1-2/+1
2018-09-02Fix formatting with cargo fmtLibravatar Dirkjan Ochtman1-1/+2
2018-07-25Prepare Heritage before Generator instantiationLibravatar Dirkjan Ochtman1-1/+39
2018-07-11Move get_template_source() into askama_deriveLibravatar Dirkjan Ochtman1-4/+32
2018-07-11Move find_template_from_path() into ConfigLibravatar Dirkjan Ochtman1-11/+11
2018-07-04Remove restrictions to named field structs (fixes #101)Libravatar Dirkjan Ochtman1-4/+0
2018-07-02Fix unused import warningLibravatar mash1-1/+1
2018-07-02Only pass path to contextLibravatar mash1-5/+5
2018-06-22Fix formatting with cargo fmtLibravatar Dirkjan Ochtman1-4/+6
2018-06-21Flatten inherited blocks for code generationLibravatar Dirkjan Ochtman1-21/+10
2018-06-21Store extends path in ContextLibravatar Dirkjan Ochtman1-12/+11
2018-06-21Use Contexts to keep per-template stateLibravatar Dirkjan Ochtman1-5/+127
2018-06-21Fix formatting with cargo fmtLibravatar Dirkjan Ochtman1-2/+2
2018-06-21Inline TemplateMeta into TemplateInputLibravatar Dirkjan Ochtman1-3/+3
2018-06-21Let build_template() own the template sourceLibravatar Dirkjan Ochtman1-2/+9
2018-06-21Rename variable for consistencyLibravatar Dirkjan Ochtman1-5/+5
2018-06-15Handle imports as part of code generationLibravatar Dirkjan Ochtman1-41/+1
2018-05-21Upgrade to syn-0.14 and quote-0.6Libravatar Dirkjan Ochtman1-1/+1
2018-04-12Isolate proc-macro dependency to the proc macroLibravatar David Tolnay1-1/+71
The dependency of askama on askama_shared on syn on libproc_macro used to mean libproc_macro would be dynamically linked into any crate using askama. We want only askama_derive to have a runtime dependency on proc macro. This commit moves all proc macro code from askama_shared into askama_derive so that the askama crate no longer dynamically links libproc_macro.
2018-01-09Upgrade to syn-0.12 and quote-0.4Libravatar Dirkjan Ochtman1-3/+3