Factored out test program and fuzzing features; core crate now only depends on smallvec and log.

This commit is contained in:
Chris Fallin
2021-04-18 13:38:05 -07:00
parent 34ab744f4f
commit 414f3f828d
6 changed files with 39 additions and 15 deletions

28
test/Cargo.toml Normal file
View File

@@ -0,0 +1,28 @@
[package]
name = "regalloc2-test"
version = "0.0.1"
authors = ["Chris Fallin <chris@cfallin.org>", "Mozilla SpiderMonkey Developers"]
edition = "2018"
license = "Apache-2.0 WITH LLVM-exception AND MPL-2.0"
description = "small test driver for benchmarking regalloc2"
repository = "https://github.com/bytecodealliance/regalloc2"
[dependencies]
regalloc2 = { version = "*", path = "../", features = ["fuzzing"] }
# Keep this in sync with libfuzzer_sys's crate version:
arbitrary = { version = "^0.4.6" }
rand = { version = "0.8" }
rand_chacha = { version = "0.3" }
env_logger = { version = "*" }
[dev-dependencies]
criterion = "0.3"
[profile.release]
debug = true
[[bench]]
name = "regalloc"
harness = false