Skip to content

Commit

Permalink
Fixup bench features
Browse files Browse the repository at this point in the history
Signed-off-by: Ana Hobden <operator@hoverbear.org>
  • Loading branch information
Hoverbear committed Jun 9, 2020
1 parent c2764a0 commit 850671d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ harness = false
[[bench]]
name = "wasm"
harness = false
required-features = ["transforms-wasm", "transforms-lua"]


[patch.'https://github.com/tower-rs/tower']
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ test-wasm: build-wasm-tests ### Run engine tests.

.PHONY: bench-wasm
bench-wasm: build-wasm-tests ### Run engine tests.
cargo bench --no-default-features --features "${DEFAULT_FEATURES} wasm transforms-lua" --bench wasm wasm
cargo bench --no-default-features --features "${DEFAULT_FEATURES} transforms-wasm transforms-lua" --bench wasm wasm

##@ Checking

Expand Down
2 changes: 0 additions & 2 deletions benches/wasm.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![cfg(all(feature = "wasm", feature = "transforms-lua"))]

use criterion::{black_box, criterion_group, criterion_main, Benchmark, BenchmarkId, Criterion};
use serde_json::Value;
use std::{collections::HashMap, fs, io::Read, path::Path};
Expand Down

0 comments on commit 850671d

Please sign in to comment.