%__rustc %{_bindir}/rustc %__rustdoc %{_bindir}/rustdoc # Enable optimization, debuginfo, and link hardening. %build_rustflags %{shrink: -Copt-level=3 -Cdebuginfo=2 -Clink-arg=-Wl,-z,relro,-z,now -Ccodegen-units=1 --cap-lints=warn } %__global_rustflags %{build_rustflags} %__global_rustflags_toml [%{lua: for arg in string.gmatch(rpm.expand("%{build_rustflags}"), "%S+") do print('"' .. arg .. '", ') end}]