cargo-binstall/crates/leon/src
Jiahao XU 5683ca2476
Add new crate leon-macros that provide template! with identical syntax as runtime parsing (#946)
`leon_macros::template!` can parse template at compile-time.
It accepts a utf-8 string literal and uses `leon` internally to parse it, then generate code that evaluates to `Template<'static>`.

 - Exclude fuzz from crate leon when publishing
 - Impl fn-like proc-macro `leon_macros::template!`
 - Add dep `leon-macros` to binstalk
 - Use `leon_macros::template!` in `binstalk::fetchers::gh_crate_meta::hosting`
 - Add doc for `leon-macros` in `leon`
 - Improve `std::fmt::Display` impl for `leon::ParseError`
 - Fixed broken infra link in leon

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-04-17 14:50:58 +10:00
..
error.rs Add new crate leon-macros that provide template! with identical syntax as runtime parsing (#946) 2023-04-17 14:50:58 +10:00
lib.rs Add new crate leon-macros that provide template! with identical syntax as runtime parsing (#946) 2023-04-17 14:50:58 +10:00
macros.rs Add new crate leon-macros that provide template! with identical syntax as runtime parsing (#946) 2023-04-17 14:50:58 +10:00
main.rs Leon template library (#766) 2023-03-21 01:36:02 +00:00
parser.rs Use leon for template in binstalk & detect malformed pkg-url/pkg-fmt early (#933) 2023-03-26 16:11:10 +11:00
template.rs Add new crate leon-macros that provide template! with identical syntax as runtime parsing (#946) 2023-04-17 14:50:58 +10:00
values.rs Use leon for template in binstalk & detect malformed pkg-url/pkg-fmt early (#933) 2023-03-26 16:11:10 +11:00