forked from ariel-os/trevm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.toml
More file actions
30 lines (28 loc) · 781 Bytes
/
config.toml
File metadata and controls
30 lines (28 loc) · 781 Bytes
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
# Meant to be "imported" through the `precompiled_wasm` script.
[unstable]
build-std = ["core", "alloc", "panic_abort"]
build-std-features = [
"optimize_for_size",
# "panic_immediate_abort", # Uncomment this on older nightly compiler
]
[build]
rustflags = [
"-Z",
"location-detail=none",
"-Z",
"unstable-options",
"-Cpanic=immediate-abort", # Comment this out on older nightly compilers
"-C",
"link-arg=--page-size=1",
"-C",
"link-arg=--initial-memory=32768",
"-C",
"link-arg=-zstack-size=8192", # Doubled initial stack size because the coap example exhausts the 4096 bytes stack.
]
target = "wasm32v1-none"
[profile.release]
opt-level = "s" # Overriden by precompile_wasm.rs
codegen-units = 1
lto = "fat"
debug = false
strip = "symbols"