79 releases (stable)

new 3.3.0 Dec 18, 2024
3.2.1 Oct 7, 2024
3.2.0 Sep 20, 2024
3.1.2 May 15, 2024
0.1.0-pre.3 Mar 29, 2021

#380 in Development tools

Download history 414/week @ 2024-08-29 366/week @ 2024-09-05 180/week @ 2024-09-12 668/week @ 2024-09-19 512/week @ 2024-09-26 566/week @ 2024-10-03 683/week @ 2024-10-10 565/week @ 2024-10-17 819/week @ 2024-10-24 746/week @ 2024-10-31 529/week @ 2024-11-07 497/week @ 2024-11-14 763/week @ 2024-11-21 792/week @ 2024-11-28 702/week @ 2024-12-05 413/week @ 2024-12-12

2,782 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–13MB
~162K SLoC