Cargo.toml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. [package]
  2. name = "bevy-jam-5"
  3. version = "0.1.0"
  4. edition = "2021"
  5. # Enable a small amount of optimization in the dev profile.
  6. [profile.dev]
  7. opt-level = 1
  8. # Enable a large amount of optimization in the dev profile for dependencies.
  9. [profile.dev.package."*"]
  10. opt-level = 3
  11. # Enable more optimization in the release profile at the cost of compile time.
  12. [profile.release]
  13. # Compile the entire crate as one unit.
  14. # Slows compile times, marginal improvements.
  15. codegen-units = 1
  16. # Do a second optimization pass over the entire program, including dependencies.
  17. # Slows compile times, marginal improvements.
  18. lto = "thin"
  19. # Optimize for size in the wasm-release profile to reduce load times and bandwidth usage on web.
  20. [profile.wasm-release]
  21. # Default to release profile values.
  22. inherits = "release"
  23. # Optimize with size in mind (also try "z", sometimes it is better).
  24. # Slightly slows compile times, great improvements to file size and runtime performance.
  25. opt-level = "s"
  26. # Strip all debugging information from the binary to slightly reduce file size.
  27. strip = "debuginfo"
  28. [dependencies]
  29. bevy = { version = "0.14.0", features = ["dynamic_linking"] }