mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-14 07:29:02 +03:00
95 lines
3.1 KiB
TOML
95 lines
3.1 KiB
TOML
[package]
|
|
name = "roc_cli"
|
|
version = "0.1.0"
|
|
authors = ["The Roc Contributors"]
|
|
license = "UPL-1.0"
|
|
repository = "https://github.com/rtfeldman/roc"
|
|
edition = "2018"
|
|
description = "A CLI for Roc"
|
|
default-run = "roc"
|
|
|
|
[[bin]]
|
|
name = "roc"
|
|
path = "src/main.rs"
|
|
test = false
|
|
bench = false
|
|
|
|
[features]
|
|
default = ["target-aarch64", "target-x86_64", "target-wasm32", "llvm", "editor"]
|
|
|
|
wasm32-cli-run = ["target-wasm32", "run-wasm32"]
|
|
i386-cli-run = ["target-x86"]
|
|
|
|
# This is a separate feature because when we generate docs on Netlify,
|
|
# it doesn't have LLVM installed. (Also, it doesn't need to do code gen.)
|
|
llvm = ["inkwell", "roc_gen_llvm", "roc_build/llvm"]
|
|
editor = ["roc_editor"]
|
|
|
|
run-wasm32 = ["wasmer", "wasmer-wasi"]
|
|
|
|
# Compiling for a different platform than the host can cause linker errors.
|
|
target-arm = ["roc_build/target-arm"]
|
|
target-aarch64 = ["roc_build/target-aarch64"]
|
|
target-x86 = ["roc_build/target-x86"]
|
|
target-x86_64 = ["roc_build/target-x86_64"]
|
|
target-wasm32 = ["roc_build/target-wasm32"]
|
|
|
|
target-all = [
|
|
"target-aarch64",
|
|
"target-arm",
|
|
"target-x86",
|
|
"target-x86_64",
|
|
"target-wasm32"
|
|
]
|
|
|
|
|
|
[dependencies]
|
|
roc_collections = { path = "../compiler/collections" }
|
|
roc_can = { path = "../compiler/can" }
|
|
roc_docs = { path = "../docs" }
|
|
roc_parse = { path = "../compiler/parse" }
|
|
roc_region = { path = "../compiler/region" }
|
|
roc_module = { path = "../compiler/module" }
|
|
roc_problem = { path = "../compiler/problem" }
|
|
roc_types = { path = "../compiler/types" }
|
|
roc_builtins = { path = "../compiler/builtins" }
|
|
roc_constrain = { path = "../compiler/constrain" }
|
|
roc_unify = { path = "../compiler/unify" }
|
|
roc_solve = { path = "../compiler/solve" }
|
|
roc_mono = { path = "../compiler/mono" }
|
|
roc_load = { path = "../compiler/load" }
|
|
roc_gen_llvm = { path = "../compiler/gen_llvm", optional = true }
|
|
roc_build = { path = "../compiler/build", default-features = false }
|
|
roc_fmt = { path = "../compiler/fmt" }
|
|
roc_reporting = { path = "../reporting" }
|
|
roc_editor = { path = "../editor", optional = true }
|
|
roc_linker = { path = "../linker" }
|
|
clap = { version = "= 3.0.0-beta.5", default-features = false, features = ["std", "color", "suggestions"] }
|
|
const_format = "0.2.22"
|
|
rustyline = { git = "https://github.com/rtfeldman/rustyline", tag = "prompt-fix" }
|
|
rustyline-derive = { git = "https://github.com/rtfeldman/rustyline", tag = "prompt-fix" }
|
|
bumpalo = { version = "3.8.0", features = ["collections"] }
|
|
libloading = "0.7.1"
|
|
mimalloc = { version = "0.1.26", default-features = false }
|
|
|
|
inkwell = { path = "../vendor/inkwell", optional = true }
|
|
target-lexicon = "0.12.2"
|
|
tempfile = "3.2.0"
|
|
|
|
wasmer = { version = "2.0.0", optional = true, default-features = false, features = ["default-cranelift", "default-universal"] }
|
|
wasmer-wasi = { version = "2.0.0", optional = true }
|
|
|
|
[dev-dependencies]
|
|
wasmer = { version = "2.0.0", default-features = false, features = ["default-cranelift", "default-universal"] }
|
|
wasmer-wasi = "2.0.0"
|
|
pretty_assertions = "1.0.0"
|
|
indoc = "1.0.3"
|
|
serial_test = "0.5.1"
|
|
tempfile = "3.2.0"
|
|
criterion = { git = "https://github.com/Anton-4/criterion.rs"}
|
|
cli_utils = { path = "../cli_utils" }
|
|
|
|
[[bench]]
|
|
name = "time_bench"
|
|
harness = false
|