In the root of the Rust project, compile with this leading option:
RUSTFLAGS="-C target-feature=+crt-static" cargo build --target x86_64-unknown-linux-gnu
For a release compilation
RUSTFLAGS="-C target-feature=+crt-static" cargo build --target x86_64-unknown-linux-gnu --release
I tested the compilation in:
Operating System: Archcraft
Kernel: Linux 6.0.10-arch2-1
Architecture: x86-64
Firmware Version: 1007
The resulting executable worked in target system:
Virtualization: vmware
Operating System: Ubuntu 14.04.3 LTS
Kernel: Linux 3.19.0-49-generic
Architecture: x86_64