As discussed previously, we need a way to be able to configure Wasmtime when running it in the Sightglass benchmark infrastructure. The easiest way to do this seemed to be to pass a string from Sightglass to the `bench-api` library and parse this in the same way that Wasmtime parses its CLI flags. The structure that contains these flags is `CommonOptions`, so it has been moved to its own crate to be depended on by both `wasmtime-cli` and `wasmtime-bench-api`. Also, this change adds an externally-visible function for parsing a string into `CommonOptions`, which is used for configuring an engine.
49 lines
1.4 KiB
TOML
49 lines
1.4 KiB
TOML
# Documentation for this configuration file can be found here
|
|
# https://embarkstudios.github.io/cargo-deny/checks/cfg.html
|
|
|
|
targets = [
|
|
{ triple = "x86_64-unknown-linux-gnu" },
|
|
{ triple = "x86_64-apple-darwin" },
|
|
{ triple = "x86_64-pc-windows-msvc" },
|
|
{ triple = "aarch64-linux-android" },
|
|
]
|
|
|
|
# https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html
|
|
[licenses]
|
|
allow = [
|
|
"Apache-2.0 WITH LLVM-exception",
|
|
"Apache-2.0",
|
|
"BSD-2-Clause",
|
|
"CC0-1.0",
|
|
"ISC",
|
|
"MIT",
|
|
"MPL-2.0",
|
|
"Zlib",
|
|
]
|
|
|
|
# https://embarkstudios.github.io/cargo-deny/checks/bans/cfg.html
|
|
[bans]
|
|
multiple-versions = "deny"
|
|
wildcards = "allow"
|
|
deny = []
|
|
|
|
skip-tree = [
|
|
# Criterion 0.3 is pretty old at this point and has had an upcoming 0.4 for
|
|
# a long time. This is a dev-dependency so we don't really mind its
|
|
# dependency tree, so skip it entirely.
|
|
{ name = "criterion", depth = 20 },
|
|
|
|
# This is maintained externally and we allow it to have duplicate
|
|
# dependencies relative to Wasmtime's main dependency tree.
|
|
{ name = "witx", depth = 20 },
|
|
|
|
# This is somewhat unmaintained at this point and seems to pull in an old
|
|
# version of `env_logger`, so ignore it.
|
|
{ name = "pretty_env_logger", depth = 20 },
|
|
|
|
# This crate depends on an old version of the `uuid` crate: `wasmtime-cli ->
|
|
# listenfd -> uuid`. Once `listenfd` upgrades to `uuid` v1.0.0, this can be
|
|
# removed.
|
|
{ name = "listenfd", depth = 20 },
|
|
]
|