Cargo subcommand to build multiple versions of the same binary to generate a portable optimized binary.
If you want to apply this approach only at the function level, take a look at the multiversion crate.
bash
cargo install --locked cargo-multivers
bash
cargo +nightly multivers
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.