Simple rust crate that copies the pre-compiled dynamic std library to your target directory.
This is a convenience intended for programs that make use of dylib crates, or get compiled
with -Cprefer-dynamic.
Add to your Cargo.toml:
[target.'cfg(any(unix, windows))'.dependencies]
prefer-dynamic2 = "0.2.0"
[target.'cfg(any(unix, windows))'.dev-dependencies]
prefer-dynamic2 = "0.2.0"Create or edit .cargo/config.toml in the manifest root of your project
(create the folder .cargo if it does not exists), and add:
[target.'cfg(any(unix, windows))']
rustflags = ["-Cprefer-dynamic=yes", "-Crpath"]This software is distributed under the terms of both the MIT license and the Apache License (Version 2.0). All contributions must be dual licensed Apache2/MIT unless otherwise stated.
This project is a fork of the fine work of William Venner:
prefer-dynamic.