mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Bump criterion to 0.4.0 (#237)
For the html reports, it now requires the cargo binary cargo-criterion.
This commit is contained in:
parent
f82ac0e8a3
commit
9bc01a9c8d
4
.github/actions/setup/action.yml
vendored
4
.github/actions/setup/action.yml
vendored
@ -54,3 +54,7 @@ runs:
|
|||||||
uses: ./.github/actions/cargo-install
|
uses: ./.github/actions/cargo-install
|
||||||
with:
|
with:
|
||||||
name: just
|
name: just
|
||||||
|
- name: Install cargo-criterion
|
||||||
|
uses: ./.github/actions/cargo-install
|
||||||
|
with:
|
||||||
|
name: cargo-criterion
|
||||||
|
|||||||
@ -14,7 +14,7 @@ authors.workspace = true
|
|||||||
maplibre = { path = "../maplibre", features = ["headless", "embed-static-tiles", "thread-safe-futures"] }
|
maplibre = { path = "../maplibre", features = ["headless", "embed-static-tiles", "thread-safe-futures"] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
criterion = { version = "0.3.6", features = ["async_tokio"] }
|
criterion = { version = "0.4.0", features = ["async_tokio"] }
|
||||||
tokio = "1.19.2"
|
tokio = "1.19.2"
|
||||||
|
|
||||||
[[bench]]
|
[[bench]]
|
||||||
|
|||||||
2
justfile
2
justfile
@ -70,7 +70,7 @@ test PROJECT ARCH:
|
|||||||
cargo test -p {{PROJECT}} --target {{ARCH}}
|
cargo test -p {{PROJECT}} --target {{ARCH}}
|
||||||
|
|
||||||
benchmark:
|
benchmark:
|
||||||
cargo bench -p benchmarks
|
cargo criterion -p benchmarks
|
||||||
|
|
||||||
fmt: nightly-install-rustfmt
|
fmt: nightly-install-rustfmt
|
||||||
export RUSTUP_TOOLCHAIN=$NIGHTLY_TOOLCHAIN && cargo fmt
|
export RUSTUP_TOOLCHAIN=$NIGHTLY_TOOLCHAIN && cargo fmt
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user