Skip to content

Kijewski/prefer-dynamic2

prefer-dynamic2

GitHub Workflow Status Crates.io

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.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Security policy

Stars

Watchers

Forks

Contributors

Languages