1- cargo-features = [" codegen-backend" , " profile-rustflags" , " trim-paths" ]
1+ cargo-features = [ " codegen-backend" , " profile-rustflags" , " trim-paths" ]
22# cargo-features = ["profile-rustflags", "trim-paths"] # required for both trimming paths and setting rustflags
33# The aboe also needs the profile.dev to be uncommented to use the cranelift backend
44[package ]
55name = " rust_template"
66version = " 0.1.0"
7- authors = [" MrDwarf7" , " Blake B. <github.com/MrDwarf7>" ]
7+ authors = [ " MrDwarf7" , " Blake B. <github.com/MrDwarf7>" ]
88edition = " 2024"
99description = " It does cool stuff!"
1010# license = "MIT"
@@ -84,7 +84,6 @@ thiserror = "*"
8484opt-level = 1
8585codegen-units = 256
8686incremental = true
87- rustflags = [" -Zthreads=16" ]
8887codegen-backend = " cranelift"
8988debug = " line-tables-only"
9089debug-assertions = true
@@ -93,6 +92,7 @@ strip = "none" # true | false | "none" | "symbols" | "deb
9392panic = " abort" # "unwind" | "abort"
9493lto = " off" # "false" ### # true | false | "off" | "thin" | "fat" ## Can't use with cranelift yet
9594trim-paths = " none"
95+ # rustflags = ["-Zthreads=16"]
9696# tune-cpu = "native"
9797
9898# #####################################################################################################################################################
@@ -101,15 +101,15 @@ trim-paths = "none"
101101opt-level = 3
102102codegen-units = 1
103103incremental = false
104- rustflags = [" -Zthreads=16" ]
105- codegen-backend = " cranelift" # May break deps.
104+ codegen-backend = " cranelift" # May break deps.
106105debug = " none"
107106debug-assertions = false
108- overflow-checks = false # debatable
109- strip = " symbols" # true | false | "none" | "symbols" | "debuginfo" ## Leave off @ w. THIS IS NOT OBFUSCATION.
107+ overflow-checks = false # debatable
108+ strip = " symbols" # true | false | "none" | "symbols" | "debuginfo" ## Leave off @ w. THIS IS NOT OBFUSCATION.
110109panic = " unwind"
111- lto = " off" # true | false | "off" | "thin" | "fat" ## Can't use with cranelift yet
112- trim-paths = [" diagnostics" , " object" ]
110+ lto = " off" # true | false | "off" | "thin" | "fat" ## Can't use with cranelift yet
111+ trim-paths = [ " diagnostics" , " object" ]
112+ # rustflags = ["-Zthreads=16"]
113113# tune-cpu = "native"
114114
115115
0 commit comments