72 releases (stable)

3.0.0 Mar 15, 2024
2.6.1 Jan 23, 2024
2.5.0 Nov 17, 2023
2.1.11 Jul 8, 2023
0.1.0-pre.3 Mar 29, 2021

#476 in Development tools

Download history 150/week @ 2023-12-23 173/week @ 2023-12-30 198/week @ 2024-01-06 315/week @ 2024-01-13 211/week @ 2024-01-20 261/week @ 2024-01-27 297/week @ 2024-02-03 622/week @ 2024-02-10 853/week @ 2024-02-17 662/week @ 2024-02-24 371/week @ 2024-03-02 603/week @ 2024-03-09 428/week @ 2024-03-16 331/week @ 2024-03-23 1057/week @ 2024-03-30 442/week @ 2024-04-06

2,443 downloads per month

MIT/Apache

53KB
1K 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–16MB
~183K SLoC