2022-02-03 02:05:09 +03:00
|
|
|
[package]
|
|
|
|
name = "roc_repl_wasm"
|
2023-03-07 06:29:09 +03:00
|
|
|
description = "Provides a build of the REPL for the Roc website using WebAssembly."
|
|
|
|
|
2023-03-07 21:15:39 +03:00
|
|
|
authors = ["The Roc Contributors"]
|
|
|
|
edition = "2021"
|
|
|
|
license = "UPL-1.0"
|
|
|
|
version = "0.0.1"
|
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]
|
2023-03-10 10:28:53 +03:00
|
|
|
roc_bitcode = { path = "../compiler/builtins/bitcode" }
|
2023-03-07 06:47:57 +03:00
|
|
|
roc_builtins = { path = "../compiler/builtins" }
|
2022-06-19 17:21:59 +03:00
|
|
|
wasi_libc_sys = { path = "../wasi-libc-sys" }
|
2023-03-07 06:29:09 +03:00
|
|
|
|
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
|
2023-03-07 06:47:57 +03:00
|
|
|
console_error_panic_hook = { workspace = true, optional = true }
|
|
|
|
futures = { workspace = true, optional = true }
|
2023-03-07 21:15:39 +03:00
|
|
|
getrandom = { version = "0.2", features = ["js"] } # not a direct dependency, needed because of https://docs.rs/getrandom/latest/getrandom/#webassembly-support
|
2023-03-07 06:29:09 +03:00
|
|
|
js-sys.workspace = true
|
|
|
|
wasm-bindgen-futures.workspace = true
|
2023-03-07 06:47:57 +03:00
|
|
|
wasm-bindgen.workspace = true
|
2022-02-03 15:35:15 +03:00
|
|
|
|
2023-03-07 06:47:57 +03:00
|
|
|
roc_collections = { path = "../compiler/collections" }
|
|
|
|
roc_gen_wasm = { path = "../compiler/gen_wasm" }
|
|
|
|
roc_load = { path = "../compiler/load" }
|
|
|
|
roc_parse = { path = "../compiler/parse" }
|
|
|
|
roc_repl_eval = { path = "../repl_eval" }
|
|
|
|
roc_reporting = { path = "../reporting" }
|
|
|
|
roc_target = { path = "../compiler/roc_target" }
|
|
|
|
roc_types = { path = "../compiler/types" }
|
2022-02-19 21:21:52 +03:00
|
|
|
|
2022-02-20 20:47:56 +03:00
|
|
|
[features]
|
2022-12-14 23:05:01 +03:00
|
|
|
wasi_test = ["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
|