Prepare for adding theseus

This commit is contained in:
Jai A 2024-07-03 13:25:49 -07:00
parent 10785f156f
commit d33a0cd589
No known key found for this signature in database
GPG Key ID: 9A9F9B7250E9883C
26 changed files with 23 additions and 1 deletions

View File

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

View File

@ -7,5 +7,21 @@ members = [
'./apps/theseus_playground',
]
[profile.dev]
opt-level = 0
debug = true
debug-assertions = true
overflow-checks = true
lto = false
panic = 'unwind'
incremental = true
codegen-units = 256
rpath = false
# Optimize for speed and reduce size on release builds
[profile.release]
lto = true
panic = "abort" # Strip expensive panic clean-up logic
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
lto = true # Enables link to optimizations
opt-level = "s" # Optimize for binary size
strip = true # Remove debug symbols

2
rustfmt.toml Normal file
View File

@ -0,0 +1,2 @@
edition = "2018"
max_width = 80