From 03b2e9ad69eb1e1dfd7e6763e8577f6fb91ff9ba Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Wed, 18 Mar 2020 13:09:38 +0800 Subject: [PATCH] Fix default release profile and change optimization default back to Simple. --- Cargo.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8de522a1..a8faf087 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ num-traits = "0.2.11" [features] #default = ["no_function", "no_index", "no_float", "only_i32", "no_stdlib", "unchecked", "no_optimize"] -default = [ "optimize_full" ] +default = [] debug_msgs = [] # print debug messages on function registrations and calls unchecked = [] # unchecked arithmetic no_stdlib = [] # no standard library of utility functions @@ -28,7 +28,7 @@ no_index = [] # no arrays and indexing no_float = [] # no floating-point no_function = [] # no script-defined functions no_optimize = [] # no script optimizer -optimize_full = [] # set optimization level to Full (default is Simple) +optimize_full = [] # set optimization level to Full (default is Simple) - this is a feature used only to simply testing only_i32 = [] # set INT=i32 (useful for 32-bit systems) only_i64 = [] # set INT=i64 (default) and disable support for all other integer types @@ -38,7 +38,8 @@ no_std = [ "num-traits/libm", "hashbrown", "core-error", "libm" ] [profile.release] lto = "fat" codegen-units = 1 -opt-level = "z" # optimize for size +#opt-level = "z" # optimize for size +#panic = 'abort' # remove stack backtrace for no-std [dependencies.libm] version = "0.2.1"