78 releases (stable)

3.2.1 Oct 7, 2024
3.1.2 May 15, 2024
3.0.0 Mar 15, 2024
2.6.1 Jan 23, 2024
0.1.0-pre.3 Mar 29, 2021

#361 in Development tools

Download history 323/week @ 2024-07-29 392/week @ 2024-08-05 80/week @ 2024-08-12 370/week @ 2024-08-19 455/week @ 2024-08-26 373/week @ 2024-09-02 235/week @ 2024-09-09 429/week @ 2024-09-16 582/week @ 2024-09-23 385/week @ 2024-09-30 682/week @ 2024-10-07 624/week @ 2024-10-14 853/week @ 2024-10-21 599/week @ 2024-10-28 736/week @ 2024-11-04 473/week @ 2024-11-11

2,678 downloads per month

MIT/Apache

61KB
1.5K SLoC

dylint-link

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.

Dependencies

~5–14MB
~165K SLoC