aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorTianhao Wang <shrik3@riseup.net>2023-03-11 00:39:38 +0100
committerTianhao Wang <shrik3@riseup.net>2023-03-11 00:39:38 +0100
commit2625fd044547c7e8b8de287963ba9422aff1f051 (patch)
tree0d48aa38831399d0006efdb18a6e983586ebb9f2 /Cargo.toml
parent29e28bc9c67378d0d9a7174dec6a0b541fb7f4d5 (diff)
fix linking
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml17
1 files changed, 16 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 6eef6ef..5f91e89 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,9 +7,24 @@ edition = "2021"
[dependencies]
+
+[build]
+target = "x86_64-rustubs"
+
+[lib]
+crate-type = ["staticlib"]
+
[profile.dev]
panic = "abort"
+debug = 1
+lto = true
[profile.release]
panic = "abort"
-
+#opt-level = 0
+opt-level = 3
+debug = 0
+overflow-checks = false
+lto = true
+codegen-units = 1
+debug-assertions = false