Skip to content

Commit 6e08d13

Browse files
committed
Add Rust optimizations
1 parent a8cfdbc commit 6e08d13

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "r2-t2",
3-
"version": "0.1.0",
3+
"version": "0.0.0",
44
"private": true,
55
"dependencies": {
66
"@emotion/react": "^11.10.4",

src-tauri/Cargo.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "app"
3-
version = "0.1.0"
3+
version = "0.0.0"
44
description = "A Tauri App"
55
authors = ["you"]
66
license = ""
@@ -26,3 +26,10 @@ default = [ "custom-protocol" ]
2626
# this feature is used used for production builds where `devPath` points to the filesystem
2727
# DO NOT remove this
2828
custom-protocol = [ "tauri/custom-protocol" ]
29+
30+
[profile.release]
31+
panic = "abort" # Strip expensive panic clean-up logic
32+
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
33+
lto = true # Enables link to optimizations
34+
opt-level = "s" # Optimize for binary size
35+
# strip = true # Automatically strip symbols from the binary.

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"package": {
33
"productName": "Product Name",
4-
"version": "0.1.0"
4+
"version": "0.2.0"
55
},
66
"build": {
77
"beforeDevCommand": "yarn start",

0 commit comments

Comments
 (0)