diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 46017a7..f6dda61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,10 +43,10 @@ jobs: - name: Clippy run: cargo clippy -- -D warnings - name: Check (async-std) - run: cargo check --features link + run: cargo check --features link_to - name: Run tests (async-std) - run: cargo test --verbose --features link + run: cargo test --verbose --features link_to - name: Check (Tokio) - run: cargo check --no-default-features --features tokio-runtime,link + run: cargo check --no-default-features --features tokio-runtime,link_to - name: Run unit tests (Tokio) - run: cargo test --verbose --no-default-features --features tokio-runtime,link --lib + run: cargo test --verbose --no-default-features --features tokio-runtime,link_to --lib diff --git a/benches/benchmarks.rs b/benches/benchmarks.rs index 1d1c5ab..01ab9e3 100644 --- a/benches/benchmarks.rs +++ b/benches/benchmarks.rs @@ -226,7 +226,7 @@ fn link_to_async(c: &mut Criterion) { let tmp = tempfile::tempdir().unwrap(); let cache = tmp.path().to_owned(); - c.bench_function("link::file", move |b| { + c.bench_function("link_to::file", move |b| { b.iter_custom(|iters| { let start = std::time::Instant::now(); for i in 0..iters { @@ -249,7 +249,7 @@ fn link_to_hash_async(c: &mut Criterion) { let tmp = tempfile::tempdir().unwrap(); let cache = tmp.path().to_owned(); - c.bench_function("link::file_hash", move |b| { + c.bench_function("link_to::file_hash", move |b| { b.iter(|| block_on(cacache::link_to_hash(&cache, target.clone())).unwrap()) }); } @@ -261,7 +261,7 @@ fn link_to_sync(c: &mut Criterion) { let tmp = tempfile::tempdir().unwrap(); let cache = tmp.path().to_owned(); - c.bench_function("link::file_sync", move |b| { + c.bench_function("link_to::file_sync", move |b| { b.iter_custom(|iters| { let start = std::time::Instant::now(); for i in 0..iters { @@ -279,7 +279,7 @@ fn link_to_hash_sync(c: &mut Criterion) { let tmp = tempfile::tempdir().unwrap(); let cache = tmp.path().to_owned(); - c.bench_function("link::file_hash_sync", move |b| { + c.bench_function("link_to::file_hash_sync", move |b| { b.iter(|| cacache::link_to_hash_sync(&cache, target.clone()).unwrap()) }); }