Cargo.toml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. [workspace]
  2. members = [
  3. "./*/src-tauri/",
  4. ]
  5. [profile.release]
  6. panic = "abort"
  7. codegen-units = 1
  8. lto = true
  9. incremental = false
  10. opt-level = "s"
  11. # See https://github.com/rust-lang/cargo/issues/10118#issuecomment-1006000210
  12. # And https://github.com/rust-lang/rust/issues/96486
  13. [profile.release.package.compiler_builtins]
  14. # The compiler-builtins crate cannot reference libcore, and it's own CI will
  15. # verify that this is the case. This requires, however, that the crate is built
  16. # without overflow checks and debug assertions. Forcefully disable debug
  17. # assertions and overflow checks here which should ensure that even if these
  18. # assertions are enabled for libstd we won't enable then for compiler_builtins
  19. # which should ensure we still link everything correctly.
  20. debug-assertions = false
  21. overflow-checks = false
  22. # For compiler-builtins we always use a high number of codegen units.
  23. # The goal here is to place every single intrinsic into its own object
  24. # file to avoid symbol clashes with the system libgcc if possible. Note
  25. # that this number doesn't actually produce this many object files, we
  26. # just don't create more than this number of object files.
  27. #
  28. # It's a bit of a bummer that we have to pass this here, unfortunately.
  29. # Ideally this would be specified through an env var to Cargo so Cargo
  30. # knows how many CGUs are for this specific crate, but for now
  31. # per-crate configuration isn't specifiable in the environment.
  32. codegen-units = 10000