What do the optimization levels `-Os` and `-Oz` do in rustc?
It seems like you are not the only one confused, as described in a Rust issue. It seems to follow the same pattern as Clang: Os For optimising the size when compiling. Oz For even more size optimisation.