From 257c67f204c2a2d1ca8a1d0ac266312167a170eb Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 16 Dec 2022 14:54:22 +0300 Subject: chore(tvix): upgrade to clap 4.0 In //tvix/eval: * criterion bumped to 4.0, which at least depends on clap 3.x instead of 2.x, which is less incompatible In //tvix/cli: * no changes required In //tvix/nix_cli: * some minor changes for compatibility with clap 4.0, no functionality changes Change-Id: If793f64b59fcaa2402d3d483ddbab4092f32df03 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7588 Reviewed-by: grfn Tested-by: BuildkiteCI --- tvix/eval/benches/eval.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tvix/eval/benches') diff --git a/tvix/eval/benches/eval.rs b/tvix/eval/benches/eval.rs index 3e4da75936d0..006038490df4 100644 --- a/tvix/eval/benches/eval.rs +++ b/tvix/eval/benches/eval.rs @@ -1,6 +1,9 @@ use criterion::{black_box, criterion_group, criterion_main, Criterion}; use itertools::Itertools; -use tvix_eval::interpret; + +fn interpret(code: &str) { + tvix_eval::Evaluation::new(code).evaluate() +} fn eval_literals(c: &mut Criterion) { c.bench_function("int", |b| { -- cgit 1.4.1