Tweak release options to shrink the binary a bit.
[mandelwow.git] / Cargo.toml
index f3f65b9f3256fd80d5c60524bc0d4f8e6cbdded1..00a6fc19a682a13d64fc8233d074d063a0f555da 100644 (file)
@@ -5,23 +5,29 @@ authors = ["Bernie Innocenti <bernie@codewiz.org>"]
 license = "GPL-3.0+"
 
 [profile.release]
-#lto = true
-panic = 'abort'
+lto = true
+panic = "abort"
+opt-level = 3
 
 [dependencies]
 cgmath = "*"
 glium = "0.16.0"
 glutin = "0.7.4"
 genmesh = "0.4.1"
-image = { version = "0.13.0", features = ["png_codec"] }
+image = { version = "0.14.0", features = ["png_codec"], optional = true }
 libxm = "1.0.0"
 obj = { version = "0.5", features = ["usegenmesh"] }
+rust-rocket = { path = "rust-rocket", optional = true }
 rand = "*"
 sdl2 = "*"
 
-#[replace]
-#"glutin:0.7.4" = { path = "/home/bernie/src/glutin" }
-#"glium:0.16.0" = { path = "/home/bernie/src/glium" }
+[features]
+default = ["rust-rocket", "image"]
+min = []
+
+[replace]
+"glutin:0.7.4" = { path = "/home/bernie/src/glutin" }
+"glium:0.16.0" = { path = "/home/bernie/src/glium" }
 
 [target.armv7-linux-androideabi]
 ar = "$ANDROID_NDK_HOME/arm/bin/arm-linux-androideabi-ar"