.cargo/config.toml
# Builds in this repository are for the CPU they are built on: every instruction the host
# has (AVX2, AVX-512, ...), not the x86-64 baseline. A binary built here stops with an
# illegal instruction on an older CPU; `RUSTFLAGS="-C target-cpu=x86-64-v3"` builds one for
# every AVX2 machine instead (RUSTFLAGS replaces these flags). A crate that depends on
# kleene does not read this file: its own build sets the flags.
#
# Written as a `cfg` target, not `build.rustflags`: cargo ignores `build.rustflags` when a
# `[target.<triple>] rustflags` matches (a host-wide linker flag, say), but joins every
# matching `target` entry.
[target.'cfg(any(target_arch = "x86_64", target_arch = "aarch64"))']
rustflags = ["-C", "target-cpu=native"]