Skip to content

Commit d33a0cd

Browse files
committed
Prepare for adding theseus
1 parent 10785f1 commit d33a0cd

26 files changed

+23
-1
lines changed

Diff for: .cargo/config.toml

+4
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
[build]
22
target-dir = 'dist/target'
3+
4+
# Windows has stack overflows when calling from Tauri, so we increase compiler size
5+
[target.'cfg(windows)']
6+
rustflags = ["-C", "link-args=/STACK:16777220"]

Diff for: Cargo.toml

+17-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,21 @@ members = [
77
'./apps/theseus_playground',
88
]
99

10+
[profile.dev]
11+
opt-level = 0
12+
debug = true
13+
debug-assertions = true
14+
overflow-checks = true
15+
lto = false
16+
panic = 'unwind'
17+
incremental = true
18+
codegen-units = 256
19+
rpath = false
20+
21+
# Optimize for speed and reduce size on release builds
1022
[profile.release]
11-
lto = true
23+
panic = "abort" # Strip expensive panic clean-up logic
24+
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
25+
lto = true # Enables link to optimizations
26+
opt-level = "s" # Optimize for binary size
27+
strip = true # Remove debug symbols
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: rustfmt.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
edition = "2018"
2+
max_width = 80

0 commit comments

Comments
 (0)