diff --git a/Cargo.toml b/Cargo.toml index a3171f722..3fac29549 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -76,6 +76,8 @@ exclude = [ codegen-units = 1 # 1 better optimizations debug = true # symbols are nice and they don't increase the size on Flash lto = "fat" +#panic = "abort" # Remove panic output, which can reduce file size +#opt-level = 'z' # Optimize for size instead of performance [patch.crates-io] xous = {path = "xous-rs"} diff --git a/kernel/Cargo.toml b/kernel/Cargo.toml index d05b7bbc0..32d347566 100644 --- a/kernel/Cargo.toml +++ b/kernel/Cargo.toml @@ -36,3 +36,5 @@ crossbeam-channel = "0.5" codegen-units = 1 # 1 better optimizations debug = true # symbols are nice and they don't increase the size on Flash lto = "fat" +# panic = "abort" # Remove some panic information +# opt-level = 'z' # Optimize for size instead of performance