mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-05 20:28:23 +00:00
68 lines
2.1 KiB
TOML
68 lines
2.1 KiB
TOML
[package]
|
|
name = "wasmer-compiler-cli"
|
|
version = "3.2.0"
|
|
description = "Wasmer Compiler CLI"
|
|
categories = ["wasm", "command-line-interface"]
|
|
keywords = ["wasm", "webassembly", "cli"]
|
|
authors = ["Wasmer Engineering Team <engineering@wasmer.io>"]
|
|
repository = "https://github.com/wasmerio/wasmer"
|
|
license = "MIT"
|
|
readme = "README.md"
|
|
edition = "2018"
|
|
default-run = "wasmer-compiler"
|
|
build = "build.rs"
|
|
|
|
[[bin]]
|
|
name = "wasmer-compiler"
|
|
path = "src/bin/wasmer_compiler.rs"
|
|
doc = false
|
|
|
|
[dependencies]
|
|
wasmer-compiler = { version = "=3.2.0", path = "../compiler", features = ["compiler"] }
|
|
wasmer-types = { version = "=3.2.0", path = "../types" }
|
|
atty = "0.2"
|
|
colored = "2.0"
|
|
anyhow = "1.0"
|
|
clap = { version = "3.1", features = ["derive"] }
|
|
# For the function names autosuggestion
|
|
distance = "0.4"
|
|
# For the inspect subcommand
|
|
bytesize = "1.0"
|
|
cfg-if = "1.0"
|
|
# For debug feature
|
|
fern = { version = "0.6", features = ["colored"], optional = true }
|
|
log = { version = "0.4", optional = true }
|
|
target-lexicon = { version = "0.12", features = ["std"] }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
wasmer-compiler-singlepass = { version = "=3.2.0", path = "../compiler-singlepass", optional = true }
|
|
wasmer-compiler-cranelift = { version = "=3.2.0", path = "../compiler-cranelift", optional = true }
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
wasmer-compiler-singlepass = { version = "=3.2.0", path = "../compiler-singlepass", optional = true, default-features = false, features = ["wasm"] }
|
|
wasmer-compiler-cranelift = { version = "=3.2.0", path = "../compiler-cranelift", optional = true, default-features = false, features = ["wasm"] }
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
unix_mode = "0.1.3"
|
|
|
|
[features]
|
|
# Don't add the compiler features in default, please add them on the Makefile
|
|
# since we might want to autoconfigure them depending on the availability on the host.
|
|
default = []
|
|
engine = []
|
|
compiler = [
|
|
"wasmer-compiler/translator",
|
|
"wasmer-compiler/compiler",
|
|
]
|
|
singlepass = [
|
|
"wasmer-compiler-singlepass",
|
|
"compiler",
|
|
]
|
|
cranelift = [
|
|
"wasmer-compiler-cranelift",
|
|
"compiler",
|
|
]
|
|
debug = ["fern", "log"]
|
|
disable-all-logging = []
|
|
jit = []
|