-
-
Notifications
You must be signed in to change notification settings - Fork 320
/
Copy pathCargo.toml
259 lines (249 loc) · 8.75 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
[workspace]
members = [
"crates/build/*",
"crates/check/*",
"crates/compiler/*",
"crates/vendor/*",
"crates/fs",
"crates/glue",
"crates/cli",
"crates/cli_test_utils",
"crates/highlight",
"crates/error_macros",
"crates/reporting",
"crates/packaging",
"crates/repl_cli",
"crates/repl_eval",
"crates/repl_test",
"crates/repl_ui",
"crates/repl_wasm",
"crates/repl_expect",
"crates/roc_std",
"crates/test_compile",
"crates/test_utils",
"crates/test_utils_dir",
"crates/valgrind_tests",
"crates/tracing",
"crates/utils/*",
"crates/soa",
"crates/docs",
"crates/docs_cli",
"crates/linker",
"crates/wasi-libc-sys",
"crates/wasm_module",
"crates/wasm_interp",
"crates/language_server",
"crates/copy_zig_glue",
"crates/roc_std_heap",
]
exclude = [
"ci/benchmarks/bench-runner",
"ci/repl_basic_test",
# Examples sometimes have Rust hosts in their platforms. The compiler should ignore those.
"examples",
]
# 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"
[workspace.package]
authors = ["The Roc Contributors"]
edition = "2021"
license = "UPL-1.0"
repository = "https://github.com/roc-lang/roc"
version = "0.0.1"
[workspace.dependencies]
object = { version = "0.36.7", default-features = false, features = [
"read",
"write",
] }
inkwell = { git = "https://github.com/TheDan64/inkwell", rev = "89e06af", features = [
"llvm18-0",
] }
arrayvec = "0.7.2"
base64-url = "1.4.13"
bincode = "1.3.3"
bitflags = "1.3.2"
bitvec = "1.0.1"
blake3 = "1.3.3"
brotli = "3.3.4" # used for decompressing tarballs over HTTPS, if the server supports brotli
bumpalo = { version = "3.12.0", features = ["collections"] }
capstone = { version = "0.11.0", default-features = false }
chrono = "0.4.26"
clap = { version = "4.2.7", default-features = false, features = [
"std",
"color",
"suggestions",
"help",
"usage",
"error-context",
] }
console_error_panic_hook = "0.1.7"
const_format = { version = "0.2.30", features = ["const_generics"] }
criterion = { git = "https://github.com/Anton-4/criterion.rs", features = [
"html_reports",
], rev = "30ea0c5" }
criterion-perf-events = { git = "https://github.com/Anton-4/criterion-perf-events", rev = "0f38c3e" }
crossbeam = "0.8.2"
dircpy = "0.3.14"
distance = "0.4.0"
encode_unicode = "1.0.0"
errno = "0.3.0"
flate2 = "1.0.25"
fnv = "1.0.7"
fs_extra = "1.3.0"
futures = "0.3.26"
hashbrown = { version = "0.14.3" }
iced-x86 = { version = "1.18.0", default-features = false, features = [
"std",
"decoder",
"op_code_info",
"instr_info",
] }
im = "15.1.0"
im-rc = "15.1.0"
indoc = "1.0.9"
insta = "1.28.0"
js-sys = "0.3.61"
lazy_static = "1.4.0"
libc = "0.2.139" # update roc_std/Cargo.toml on change
libfuzzer-sys = "0.4"
libloading = "0.7.4"
libtest-mimic = "0.6.0"
log = "0.4.17"
mach_object = "0.1"
maplit = "1.0.2"
memmap2 = "0.5.10"
mimalloc = { version = "0.1.34", default-features = false }
morphic_lib = { path = "crates/vendor/morphic_lib" }
packed_struct = "0.10.1"
parking_lot = "0.12"
perfcnt = "0.8.0"
pretty_assertions = "1.3.0" # update roc_std/Cargo.toml on change
proc-macro2 = "1.0.63"
proptest = "1.1.0"
pulldown-cmark = { version = "0.9.2", default-features = false }
quickcheck = "1.0.3" # update roc_std/Cargo.toml on change
quickcheck_macros = "1.0.0" # update roc_std/Cargo.toml on change
quote = "1.0.23"
rand = "0.8.5"
regex = "1.7.1"
remove_dir_all = "0.8.1"
reqwest = { version = "0.11.23", default-features = false, features = [
"blocking",
"rustls-tls",
] } # default-features=false removes libopenssl as a dependency on Linux, which might not be available!
rlimit = "0.9.1"
rustyline = { git = "https://github.com/roc-lang/rustyline", rev = "e74333c" }
rustyline-derive = { git = "https://github.com/roc-lang/rustyline", rev = "e74333c" }
schemars = "0.8.12"
serde = { version = "1.0.153", features = [
"derive",
] } # update roc_std/Cargo.toml on change
serde_json = "1.0.94" # update roc_std/Cargo.toml on change
serial_test = "1.0.0"
signal-hook = "0.3.15"
smallvec = { version = "1.10.0", features = ["const_generics", "const_new"] }
static_assertions = "1.1.0" # update roc_std/Cargo.toml on change
strip-ansi-escapes = "0.1.1"
strum = { version = "0.24.1", features = ["derive"] }
strum_macros = "0.24.3"
syn = { version = "1.0.109", features = ["full", "extra-traits"] }
tar = "0.4.38"
target-lexicon = "0.12.6"
tempfile = "=3.2.0"
tracing = { version = "0.1.40", features = ["release_max_level_off"] }
tracing-appender = "0.2.2"
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
walkdir = "2.3.2"
wasm-bindgen = "0.2.84"
wasm-bindgen-futures = "0.4.34"
widestring = { version = "1.1.0", default-features = false }
wyhash = "0.5.0"
# INTERNAL DEPENDENCIES
cli_test_utils = { path = "crates/cli_test_utils" }
copy_zig_glue = { path = "crates/copy_zig_glue" }
roc_alias_analysis = { path = "crates/compiler/alias_analysis" }
roc_bitcode = { path = "crates/compiler/builtins/bitcode" }
roc_bitcode_bc = { path = "crates/compiler/builtins/bitcode/bc" }
roc_build = { path = "crates/compiler/build" }
roc_builtins = { path = "crates/compiler/builtins" }
roc_can = { path = "crates/compiler/can" }
roc_can_solo = { path = "crates/check/can_solo" }
roc_checkmate = { path = "crates/compiler/checkmate" }
roc_checkmate_schema = { path = "crates/compiler/checkmate_schema" }
roc_cli = { path = "crates/cli" }
roc_collections = { path = "crates/compiler/collections" }
roc_command_utils = { path = "crates/utils/command" }
roc_constrain = { path = "crates/compiler/constrain" }
roc_debug_flags = { path = "crates/compiler/debug_flags" }
roc_derive = { path = "crates/compiler/derive" }
roc_derive_key = { path = "crates/compiler/derive_key" }
roc_docs = { path = "crates/docs" }
roc_error_macros = { path = "crates/error_macros" }
roc_exhaustive = { path = "crates/compiler/exhaustive" }
roc_fmt = { path = "crates/compiler/fmt" }
roc_gen_llvm = { path = "crates/compiler/gen_llvm" }
roc_gen_dev = { path = "crates/compiler/gen_dev" }
roc_gen_wasm = { path = "crates/compiler/gen_wasm" }
roc_glue = { path = "crates/glue" }
roc_highlight = { path = "crates/highlight" }
roc_ident = { path = "crates/compiler/ident" }
roc_late_solve = { path = "crates/compiler/late_solve" }
roc_linker = { path = "crates/linker" }
roc_load = { path = "crates/compiler/load" }
roc_load_internal = { path = "crates/compiler/load_internal" }
roc_lower_params = { path = "crates/compiler/lower_params" }
roc_module = { path = "crates/compiler/module" }
roc_mono = { path = "crates/compiler/mono" }
roc_packaging = { path = "crates/packaging" }
roc_parse = { path = "crates/compiler/parse" }
roc_problem = { path = "crates/compiler/problem" }
roc_region = { path = "crates/compiler/region" }
roc_repl_cli = { path = "crates/repl_cli" }
roc_repl_eval = { path = "crates/repl_eval" }
roc_repl_expect = { path = "crates/repl_expect" }
roc_repl_ui = { path = "crates/repl_ui" }
roc_reporting = { path = "crates/reporting" }
roc_serialize = { path = "crates/compiler/serialize" }
roc_solve = { path = "crates/compiler/solve" }
roc_solve_schema = { path = "crates/compiler/solve_schema" }
roc_solve_problem = { path = "crates/compiler/solve_problem" }
roc_specialize_types = { path = "crates/build/specialize_types" }
roc_std = { path = "crates/roc_std" }
roc_target = { path = "crates/compiler/roc_target" }
roc_test_utils = { path = "crates/test_utils" }
roc_test_utils_dir = { path = "crates/test_utils_dir" }
roc_tracing = { path = "crates/tracing" }
roc_types = { path = "crates/compiler/types" }
roc_unify = { path = "crates/compiler/unify" }
roc_wasm_interp = { path = "crates/wasm_interp" }
roc_wasm_module = { path = "crates/wasm_module" }
roc_work = { path = "crates/compiler/work" }
roc_worker = { path = "crates/compiler/worker" }
soa = { path = "crates/soa" }
test_compile = { path = "crates/test_compile" }
test_mono_macros = { path = "crates/compiler/test_mono_macros" }
test_solve_helpers = { path = "crates/compiler/test_solve_helpers" }
ven_pretty = { path = "crates/vendor/pretty" }
wasi_libc_sys = { path = "crates/wasi-libc-sys" }
# Optimizations based on https://deterministic.space/high-performance-rust.html
[profile.release]
codegen-units = 1
# debug = true # enable when profiling
[profile.dev]
debug = "line-tables-only"
[profile.bench]
codegen-units = 1
lto = "thin"
[profile.release-with-debug]
inherits = "release"
debug = true
[profile.release-with-lto]
inherits = "release"
lto = "thin" # TODO: We could consider full here since this is only used for packaged release on github.
[profile.debug-full]
inherits = "dev"
debug = true