2 releases
0.2.1 | Jan 22, 2025 |
---|---|
0.2.0 | Jan 22, 2025 |
#191 in Build Utils
234 downloads per month
10KB
189 lines
prefer-dynamic2
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
.
Usage
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"]
License
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
.