2020-03-06 01:45:48 +03:00
|
|
|
[workspace]
|
|
|
|
members = [
|
2022-07-01 18:37:43 +03:00
|
|
|
"crates/compiler/ident",
|
|
|
|
"crates/compiler/region",
|
|
|
|
"crates/compiler/collections",
|
|
|
|
"crates/compiler/exhaustive",
|
|
|
|
"crates/compiler/module",
|
|
|
|
"crates/compiler/parse",
|
|
|
|
"crates/compiler/can",
|
|
|
|
"crates/compiler/problem",
|
|
|
|
"crates/compiler/types",
|
|
|
|
"crates/compiler/builtins",
|
|
|
|
"crates/compiler/constrain",
|
|
|
|
"crates/compiler/unify",
|
|
|
|
"crates/compiler/solve",
|
|
|
|
"crates/compiler/late_solve",
|
|
|
|
"crates/compiler/fmt",
|
|
|
|
"crates/compiler/derive_key",
|
|
|
|
"crates/compiler/mono",
|
|
|
|
"crates/compiler/alias_analysis",
|
|
|
|
"crates/compiler/test_mono",
|
|
|
|
"crates/compiler/test_derive",
|
|
|
|
"crates/compiler/load",
|
|
|
|
"crates/compiler/load_internal",
|
|
|
|
"crates/compiler/gen_llvm",
|
|
|
|
"crates/compiler/gen_dev",
|
|
|
|
"crates/compiler/gen_wasm",
|
|
|
|
"crates/compiler/build",
|
|
|
|
"crates/compiler/arena_pool",
|
|
|
|
"crates/compiler/test_gen",
|
|
|
|
"crates/compiler/roc_target",
|
|
|
|
"crates/compiler/debug_flags",
|
|
|
|
"crates/vendor/inkwell",
|
|
|
|
"crates/vendor/pathfinding",
|
|
|
|
"crates/vendor/pretty",
|
2022-07-24 17:24:16 +03:00
|
|
|
"crates/glue",
|
2022-07-01 18:37:43 +03:00
|
|
|
"crates/editor",
|
|
|
|
"crates/ast",
|
|
|
|
"crates/cli",
|
|
|
|
"crates/code_markup",
|
|
|
|
"crates/highlight",
|
|
|
|
"crates/error_macros",
|
|
|
|
"crates/reporting",
|
|
|
|
"crates/repl_cli",
|
|
|
|
"crates/repl_eval",
|
|
|
|
"crates/repl_test",
|
|
|
|
"crates/repl_wasm",
|
2022-07-06 15:06:12 +03:00
|
|
|
"crates/repl_expect",
|
2022-07-01 18:37:43 +03:00
|
|
|
"crates/test_utils",
|
|
|
|
"crates/utils",
|
|
|
|
"crates/docs",
|
|
|
|
"crates/docs_cli",
|
|
|
|
"crates/linker",
|
|
|
|
"crates/wasi-libc-sys",
|
2020-03-06 01:45:48 +03:00
|
|
|
]
|
2021-11-08 05:00:49 +03:00
|
|
|
exclude = [
|
2022-05-24 19:04:31 +03:00
|
|
|
# Examples sometimes have Rust hosts in their platforms. The compiler should ignore those.
|
|
|
|
"examples",
|
2021-11-08 05:00:49 +03:00
|
|
|
"ci/bench-runner",
|
|
|
|
# Ignore building these normally. They are only imported by tests.
|
|
|
|
# The tests will still correctly build them.
|
2022-07-01 18:37:43 +03:00
|
|
|
"crates/cli_utils",
|
|
|
|
"crates/compiler/test_mono_macros",
|
2022-03-26 21:11:02 +03:00
|
|
|
# `cargo build` would cause roc_std to be built with default features which errors on windows
|
2022-07-01 18:37:43 +03:00
|
|
|
"crates/roc_std",
|
2021-11-08 05:00:49 +03:00
|
|
|
]
|
2021-06-06 07:17:42 +03:00
|
|
|
# Needed to be able to run `cargo run -p roc_cli --no-default-features` -
|
|
|
|
# see www/build.sh for more.
|
|
|
|
#
|
|
|
|
# Without the `-p` flag, cargo ignores `--no-default-features` when you have a
|
|
|
|
# workspace, and without `resolver = "2"` here, you can't use `-p` like this.
|
|
|
|
resolver = "2"
|
2020-03-31 02:31:42 +03:00
|
|
|
|
2020-04-02 04:16:14 +03:00
|
|
|
# Optimizations based on https://deterministic.space/high-performance-rust.html
|
|
|
|
[profile.release]
|
2021-02-20 22:06:46 +03:00
|
|
|
lto = "thin"
|
2020-04-02 04:16:14 +03:00
|
|
|
codegen-units = 1
|
2021-01-16 21:33:23 +03:00
|
|
|
|
2021-03-06 08:13:46 +03:00
|
|
|
# debug = true # enable when profiling
|
2021-02-20 22:06:46 +03:00
|
|
|
[profile.bench]
|
|
|
|
lto = "thin"
|
|
|
|
codegen-units = 1
|