cargo-binstall/crates
Jiahao XU 02fe3d4f27
Fix leon::ValuesFn: impl for Fn(&str) -> Option<Cow<'static, str>> (#998)
If we impl it for `<'f> Fn(&str) -> Option<Cow<'f, str>> + 'f`, then it would somehow imply it to `'static` when using it in `benches/values.rs` and `benches/others.rs`, thus I decided to simplify it back to only implement it for `'static` string.

Users who wants more flexibility should implement `Values` themselves.

This commit also extracts `benches` as a separate crate in an independent workspace to avoid building criterion and tinytemplate in CI, which makes it much slower as more crates need to be built and criterion actually pulls in clap, and a whole lots of other crates.

In additional to that, it:
 - Impl `leon::Values` for `Arc<T>` & `Rc<T>` where T: `Values`
 - Enable lto, abort on panic, stripping, set `codege-units` to 1 for `leon/benches`
 - Move into closure of criterion benchmark loop to reduce indirections
    which also reduce sizes of the closure since the Fns used in `ValuesFn`
    are zero-size.
    This also means that the compiler can now assumes `no-alias`.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-04-26 13:17:41 +10:00
..
bin Bump tracing-subscriber from 0.3.16 to 0.3.17 (#995) 2023-04-24 03:52:17 +00:00
binstalk Support subcrate in repo (#991) 2023-04-24 19:41:20 +10:00
binstalk-downloader Support subcrate in repo (#991) 2023-04-24 19:41:20 +10:00
binstalk-manifests Bump miette from 5.7.0 to 5.8.0 (#993) 2023-04-19 13:46:25 +10:00
binstalk-types Bump serde from 1.0.159 to 1.0.160 (#985) 2023-04-12 13:35:00 +10:00
detect-targets Bump tokio from 1.26.0 to 1.27.0 (#953) 2023-03-28 16:45:36 +11:00
detect-wasi Bump tempfile from 3.4.0 to 3.5.0 (#967) 2023-03-30 02:49:38 +00:00
fs-lock Bump fs4 from 0.6.2 to 0.6.3 (#755) 2023-02-01 01:40:45 +00:00
leon Fix leon::ValuesFn: impl for Fn(&str) -> Option<Cow<'static, str>> (#998) 2023-04-26 13:17:41 +10:00
leon-macros Add new crate leon-macros that provide template! with identical syntax as runtime parsing (#946) 2023-04-17 14:50:58 +10:00
normalize-path release: normalize-path v0.2.0 (#509) 2022-11-04 17:30:21 +11:00