2022-02-03 02:05:09 +03:00
|
|
|
[package]
|
|
|
|
edition = "2021"
|
|
|
|
name = "roc_repl_wasm"
|
2022-08-03 12:41:19 +03:00
|
|
|
version = "0.0.1"
|
|
|
|
authors = ["The Roc Contributors"]
|
|
|
|
license = "UPL-1.0"
|
2022-11-03 12:00:06 +03:00
|
|
|
description = "Provides a build of the REPL for the Roc website using WebAssembly."
|
2022-02-03 02:05:09 +03:00
|
|
|
|
2022-02-03 15:35:15 +03:00
|
|
|
[lib]
|
|
|
|
crate-type = ["cdylib"]
|
2022-02-03 02:05:09 +03:00
|
|
|
|
2022-02-06 13:06:38 +03:00
|
|
|
[build-dependencies]
|
|
|
|
roc_builtins = {path = "../compiler/builtins"}
|
2022-10-31 23:32:38 +03:00
|
|
|
roc_utils = {path = "../utils"}
|
2022-06-19 17:21:59 +03:00
|
|
|
wasi_libc_sys = { path = "../wasi-libc-sys" }
|
2022-11-22 06:30:34 +03:00
|
|
|
tempfile.workspace = true
|
2022-02-06 13:06:38 +03:00
|
|
|
|
2022-02-03 02:05:09 +03:00
|
|
|
[dependencies]
|
2022-11-22 06:30:34 +03:00
|
|
|
bumpalo.workspace = true
|
2022-03-12 22:23:17 +03:00
|
|
|
console_error_panic_hook = {version = "0.1.7", optional = true}
|
2022-08-30 13:15:46 +03:00
|
|
|
futures = {version = "0.3.24", optional = true}
|
2022-09-19 08:26:38 +03:00
|
|
|
js-sys = "0.3.60"
|
2022-02-03 15:35:15 +03:00
|
|
|
wasm-bindgen = "0.2.79"
|
2022-09-26 08:33:21 +03:00
|
|
|
wasm-bindgen-futures = "0.4.33"
|
2022-02-03 15:35:15 +03:00
|
|
|
|
2022-02-06 17:32:38 +03:00
|
|
|
roc_collections = {path = "../compiler/collections"}
|
|
|
|
roc_gen_wasm = {path = "../compiler/gen_wasm"}
|
2022-02-06 11:13:29 +03:00
|
|
|
roc_load = {path = "../compiler/load"}
|
2022-02-03 02:05:09 +03:00
|
|
|
roc_parse = {path = "../compiler/parse"}
|
|
|
|
roc_repl_eval = {path = "../repl_eval"}
|
2022-03-17 12:46:18 +03:00
|
|
|
roc_reporting = {path = "../reporting"}
|
2022-02-06 11:13:29 +03:00
|
|
|
roc_target = {path = "../compiler/roc_target"}
|
2022-02-06 17:32:38 +03:00
|
|
|
roc_types = {path = "../compiler/types"}
|
2022-02-19 21:21:52 +03:00
|
|
|
|
2022-02-20 20:47:56 +03:00
|
|
|
[features]
|
|
|
|
wasmer = ["futures"]
|
2022-03-04 23:54:37 +03:00
|
|
|
|
2022-05-16 11:02:43 +03:00
|
|
|
# Tell wasm-pack not to run wasm-opt automatically. We run it explicitly when we need to.
|
|
|
|
# (Workaround for a CI install issue with wasm-pack https://github.com/rustwasm/wasm-pack/issues/864)
|
2022-05-16 11:05:42 +03:00
|
|
|
[package.metadata.wasm-pack.profile.profiling]
|
2022-05-16 11:02:43 +03:00
|
|
|
wasm-opt = false
|