Prepare for adding theseus
This commit is contained in:
parent
10785f156f
commit
d33a0cd589
@ -1,2 +1,6 @@
|
|||||||
[build]
|
[build]
|
||||||
target-dir = 'dist/target'
|
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"]
|
||||||
|
|||||||
18
Cargo.toml
18
Cargo.toml
@ -7,5 +7,21 @@ members = [
|
|||||||
'./apps/theseus_playground',
|
'./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]
|
[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
2
rustfmt.toml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
edition = "2018"
|
||||||
|
max_width = 80
|
||||||
Loading…
x
Reference in New Issue
Block a user