Tweak release options to shrink the binary a bit.
[mandelwow.git] / Cargo.toml
1 [package]
2 name = "mandelwow"
3 version = "0.7.0"
4 authors = ["Bernie Innocenti <bernie@codewiz.org>"]
5 license = "GPL-3.0+"
6
7 [profile.release]
8 lto = true
9 panic = "abort"
10 opt-level = 3
11
12 [dependencies]
13 cgmath = "*"
14 glium = "0.16.0"
15 glutin = "0.7.4"
16 genmesh = "0.4.1"
17 image = { version = "0.14.0", features = ["png_codec"], optional = true }
18 libxm = "1.0.0"
19 obj = { version = "0.5", features = ["usegenmesh"] }
20 rust-rocket = { path = "rust-rocket", optional = true }
21 rand = "*"
22 sdl2 = "*"
23
24 [features]
25 default = ["rust-rocket", "image"]
26 min = []
27
28 [replace]
29 "glutin:0.7.4" = { path = "/home/bernie/src/glutin" }
30 "glium:0.16.0" = { path = "/home/bernie/src/glium" }
31
32 [target.armv7-linux-androideabi]
33 ar = "$ANDROID_NDK_HOME/arm/bin/arm-linux-androideabi-ar"
34 linker = "$ANDROID_NDK_HOME/arm/bin/arm-linux-androideabi-clang"
35
36 [lib]
37 name = "mandelwow_lib"
38 path = "lib.rs"
39
40 [[bin]]
41 name = "mandelwow"
42 path = "main.rs"