#dylib #cargo #prefer-dynamic

build prefer-dynamic

Copies std and test dynamic libraries into your target directory, for -Cprefer-dynamic and dylib crates

1 unstable release

0.1.2 May 24, 2022
0.1.1 May 10, 2022
0.1.0 May 9, 2022

#251 in Build Utils


73 lines


Simple Rust crate that copies the std and test dynamic libraries into the target directory at build time.

This is a convenience intended for programs that make use of dylib crates or compiling with -Cprefer-dynamic.


Add to your Cargo.toml

prefer-dynamic = "0"

prefer-dynamic = { version = "0", features = ["link-test"] }

No runtime deps