2019-05-27 23:32:46 +03:00
|
|
|
[package]
|
2020-08-23 18:49:33 +03:00
|
|
|
name = "roc_cli"
|
2022-09-17 09:37:45 +03:00
|
|
|
version = "0.0.1"
|
2021-04-10 15:07:38 +03:00
|
|
|
authors = ["The Roc Contributors"]
|
2021-04-15 06:26:14 +03:00
|
|
|
license = "UPL-1.0"
|
2022-08-12 22:24:09 +03:00
|
|
|
repository = "https://github.com/roc-lang/roc"
|
2022-05-16 18:04:17 +03:00
|
|
|
edition = "2021"
|
2022-11-03 12:00:06 +03:00
|
|
|
description = "The Roc binary that brings together all functionality in the Roc toolset."
|
2020-03-31 02:31:42 +03:00
|
|
|
default-run = "roc"
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "roc"
|
|
|
|
path = "src/main.rs"
|
|
|
|
test = false
|
|
|
|
bench = false
|
|
|
|
|
2021-12-29 07:07:02 +03:00
|
|
|
[features]
|
2022-05-09 22:40:57 +03:00
|
|
|
default = ["target-aarch64", "target-x86_64", "target-wasm32", "editor"]
|
2021-11-05 07:48:04 +03:00
|
|
|
|
2021-11-06 20:34:22 +03:00
|
|
|
wasm32-cli-run = ["target-wasm32", "run-wasm32"]
|
2021-11-05 09:27:07 +03:00
|
|
|
i386-cli-run = ["target-x86"]
|
2021-06-06 07:17:42 +03:00
|
|
|
|
2021-06-06 08:12:11 +03:00
|
|
|
editor = ["roc_editor"]
|
2020-04-18 16:56:54 +03:00
|
|
|
|
2021-11-06 20:34:22 +03:00
|
|
|
run-wasm32 = ["wasmer", "wasmer-wasi"]
|
2020-04-18 16:56:54 +03:00
|
|
|
|
2022-09-07 18:27:33 +03:00
|
|
|
# Compiling for a different target than the current machine can cause linker errors.
|
2022-02-25 22:37:44 +03:00
|
|
|
target-arm = ["roc_build/target-arm", "roc_repl_cli/target-arm"]
|
|
|
|
target-aarch64 = ["roc_build/target-aarch64", "roc_repl_cli/target-aarch64"]
|
|
|
|
target-x86 = ["roc_build/target-x86", "roc_repl_cli/target-x86"]
|
|
|
|
target-x86_64 = ["roc_build/target-x86_64", "roc_repl_cli/target-x86_64"]
|
|
|
|
target-wasm32 = ["roc_build/target-wasm32", "roc_repl_cli/target-wasm32"]
|
2020-04-18 16:56:54 +03:00
|
|
|
|
|
|
|
target-all = [
|
2021-11-05 07:48:04 +03:00
|
|
|
"target-aarch64",
|
2020-04-18 16:56:54 +03:00
|
|
|
"target-arm",
|
2021-11-05 07:48:04 +03:00
|
|
|
"target-x86",
|
|
|
|
"target-x86_64",
|
|
|
|
"target-wasm32"
|
2020-04-18 16:56:54 +03:00
|
|
|
]
|
|
|
|
|
2019-05-27 23:32:46 +03:00
|
|
|
|
|
|
|
[dependencies]
|
2020-03-31 02:31:42 +03:00
|
|
|
roc_collections = { path = "../compiler/collections" }
|
|
|
|
roc_can = { path = "../compiler/can" }
|
2021-03-22 05:37:39 +03:00
|
|
|
roc_docs = { path = "../docs" }
|
2022-07-24 17:46:40 +03:00
|
|
|
roc_glue = { path = "../glue" }
|
2020-03-31 02:31:42 +03:00
|
|
|
roc_parse = { path = "../compiler/parse" }
|
|
|
|
roc_region = { path = "../compiler/region" }
|
|
|
|
roc_module = { path = "../compiler/module" }
|
|
|
|
roc_builtins = { path = "../compiler/builtins" }
|
|
|
|
roc_mono = { path = "../compiler/mono" }
|
2020-05-04 04:37:40 +03:00
|
|
|
roc_load = { path = "../compiler/load" }
|
2022-02-25 22:37:44 +03:00
|
|
|
roc_build = { path = "../compiler/build" }
|
2020-08-23 21:21:30 +03:00
|
|
|
roc_fmt = { path = "../compiler/fmt" }
|
2022-01-27 01:33:02 +03:00
|
|
|
roc_target = { path = "../compiler/roc_target" }
|
2021-11-16 21:22:43 +03:00
|
|
|
roc_reporting = { path = "../reporting" }
|
2022-01-23 11:40:34 +03:00
|
|
|
roc_error_macros = { path = "../error_macros" }
|
2021-06-06 08:12:11 +03:00
|
|
|
roc_editor = { path = "../editor", optional = true }
|
2021-09-15 00:46:03 +03:00
|
|
|
roc_linker = { path = "../linker" }
|
2022-02-25 21:41:11 +03:00
|
|
|
roc_repl_cli = { path = "../repl_cli", optional = true }
|
2022-08-23 20:47:41 +03:00
|
|
|
roc_tracing = { path = "../tracing" }
|
2022-10-05 15:48:57 +03:00
|
|
|
roc_intern = { path = "../compiler/intern" }
|
2022-11-13 17:16:52 +03:00
|
|
|
roc_gen_llvm = {path = "../compiler/gen_llvm"}
|
|
|
|
|
2022-06-26 02:47:53 +03:00
|
|
|
ven_pretty = { path = "../vendor/pretty" }
|
2020-08-23 23:14:31 +03:00
|
|
|
|
2022-05-03 19:00:29 +03:00
|
|
|
wasmer-wasi = { version = "2.2.1", optional = true }
|
2022-11-13 17:16:52 +03:00
|
|
|
|
|
|
|
clap.workspace = true
|
|
|
|
const_format.workspace = true
|
|
|
|
mimalloc.workspace = true
|
|
|
|
bumpalo.workspace = true
|
|
|
|
libc.workspace = true
|
|
|
|
errno.workspace = true
|
|
|
|
target-lexicon.workspace = true
|
|
|
|
tempfile.workspace = true
|
|
|
|
strum.workspace = true
|
|
|
|
libloading.workspace = true
|
|
|
|
signal-hook.workspace = true
|
2022-06-26 13:29:59 +03:00
|
|
|
|
2022-11-13 17:00:48 +03:00
|
|
|
inkwell.workspace = true
|
|
|
|
|
2022-08-25 22:48:34 +03:00
|
|
|
# for now, uses unix/libc functions that windows does not support
|
|
|
|
[target.'cfg(not(windows))'.dependencies]
|
|
|
|
roc_repl_expect = { path = "../repl_expect" }
|
|
|
|
|
2022-02-24 21:31:21 +03:00
|
|
|
# Wasmer singlepass compiler only works on x86_64.
|
|
|
|
[target.'cfg(target_arch = "x86_64")'.dependencies]
|
2022-05-03 19:00:29 +03:00
|
|
|
wasmer = { version = "2.2.1", optional = true, default-features = false, features = ["singlepass", "universal"] }
|
2022-02-24 21:31:21 +03:00
|
|
|
|
|
|
|
[target.'cfg(not(target_arch = "x86_64"))'.dependencies]
|
2022-05-03 19:00:29 +03:00
|
|
|
wasmer = { version = "2.2.1", optional = true, default-features = false, features = ["cranelift", "universal"] }
|
2021-08-30 22:43:58 +03:00
|
|
|
|
2020-04-17 05:02:29 +03:00
|
|
|
[dev-dependencies]
|
2022-05-03 19:00:29 +03:00
|
|
|
wasmer-wasi = "2.2.1"
|
2022-09-12 13:33:19 +03:00
|
|
|
pretty_assertions = "1.3.0"
|
2021-12-25 03:19:16 +03:00
|
|
|
roc_test_utils = { path = "../test_utils" }
|
2022-10-15 13:36:06 +03:00
|
|
|
roc_utils = { path = "../utils" }
|
2022-08-15 16:18:18 +03:00
|
|
|
indoc = "1.0.7"
|
2022-08-14 12:18:07 +03:00
|
|
|
serial_test = "0.9.0"
|
2021-06-06 07:17:42 +03:00
|
|
|
criterion = { git = "https://github.com/Anton-4/criterion.rs"}
|
2021-11-08 05:33:52 +03:00
|
|
|
cli_utils = { path = "../cli_utils" }
|
2022-10-10 08:26:09 +03:00
|
|
|
once_cell = "1.15.0"
|
2022-09-19 20:11:51 +03:00
|
|
|
parking_lot = "0.12"
|
2021-05-17 18:15:10 +03:00
|
|
|
|
2022-02-24 21:31:21 +03:00
|
|
|
# Wasmer singlepass compiler only works on x86_64.
|
|
|
|
[target.'cfg(target_arch = "x86_64")'.dev-dependencies]
|
2022-05-03 19:00:29 +03:00
|
|
|
wasmer = { version = "2.2.1", default-features = false, features = ["singlepass", "universal"] }
|
2022-02-24 21:31:21 +03:00
|
|
|
|
|
|
|
[target.'cfg(not(target_arch = "x86_64"))'.dev-dependencies]
|
2022-05-03 19:00:29 +03:00
|
|
|
wasmer = { version = "2.2.1", default-features = false, features = ["cranelift", "universal"] }
|
2022-02-24 21:31:21 +03:00
|
|
|
|
2021-05-17 18:15:10 +03:00
|
|
|
[[bench]]
|
2021-05-18 19:48:59 +03:00
|
|
|
name = "time_bench"
|
|
|
|
harness = false
|