| Crates.io | dylint-link |
| lib.rs | dylint-link |
| version | 4.1.2 |
| created_at | 2021-03-25 14:11:51.718473+00 |
| updated_at | 2025-09-23 22:01:39.18676+00 |
| description | A wrapper around Rust's default linker to help create Dylint libraries |
| homepage | |
| repository | https://github.com/trailofbits/dylint |
| max_upload_size | |
| id | 373388 |
| size | 49,123 |
dylint-link is a wrapper around Rust's default linker (cc) to help create Dylint libraries.
When you link a dynamic library with the same name as your package, dylint-link creates a copy of your library with a filename that Dylint recognizes, i.e.:
DLL_PREFIX LIBRARY_NAME '@' TOOLCHAIN DLL_SUFFIX
To use dylint-link, install it:
cargo-install dylint-link
And set it as the linker in your library's .cargo/config.toml file, e.g.:
[target.x86_64-unknown-linux-gnu]
linker = "dylint-link"
If your library uses dylint-link and the dylint_library! macro, then all you should have to do is implement the register_lints function. See the examples in this repository.