diff --git a/Cargo.toml b/Cargo.toml index e52f68c..7f530f2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,3 +51,10 @@ warp = "0.3" [profile.bench-debug] inherits = "release" debug = true + +[profile.release] +codegen-units = 1 # better optimizations +lto = true # better optimizations +opt-level = 'z' # Optimize for size +panic = "abort" # No unwinding or helpful backtrace +strip = true # No debug symbols etc diff --git a/examples/iot-service/.cargo/config.toml b/examples/iot-service/.cargo/config.toml new file mode 100644 index 0000000..ee19164 --- /dev/null +++ b/examples/iot-service/.cargo/config.toml @@ -0,0 +1,2 @@ +[target.mipsel-unknown-linux-musl] +linker = "mipsel-openwrt-linux-musl-gcc"