diff --git a/Cargo.lock b/Cargo.lock index 4319dc4..c82feec 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -44,12 +44,30 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fdd7a427adc0135366d99db65b36dae9237130997e560ed61118041fb72be6e8" +[[package]] +name = "cc" +version = "1.0.83" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" +dependencies = [ + "libc", +] + [[package]] name = "cfg-if" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "cmake" +version = "0.1.50" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a31c789563b815f77f4250caee12365734369f942439b7defd71e18a48197130" +dependencies = [ + "cc", +] + [[package]] name = "color_quant" version = "1.1.0" @@ -401,6 +419,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26bcacfdd45d539fb5785049feb0038a63931aa896c7763a2a12e125ec58bd29" dependencies = [ "cfg-if", + "cmake", "libc", "version-compare", ] diff --git a/Cargo.toml b/Cargo.toml index 1137b77..114c295 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,29 @@ name = "game" version = "0.1.0" edition = "2021" +[profile.dev] +opt-level = 0 +debug = true +strip = false +debug-assertions = true +overflow-checks = true +lto = false +panic = "unwind" +incremental = true +codegen-units = 256 +rpath = false + +[profile.release] +opt-level = 3 +debug = false +debug-assertions = false +strip = "symbols" +lto = "fat" +codegen-units = 1 +panic = "abort" +incremental = false +rpath = false + [dependencies] image = "0.24.7" rand = "0.8.5" @@ -10,4 +33,4 @@ rand = "0.8.5" [dependencies.sdl2] version = "0.36" default-features = false -features = ["ttf", "gfx"] +features = ["ttf", "gfx", "bundled"]