83 releases (stable)

new 3.5.1 Feb 12, 2025
3.4.1 Jan 27, 2025
3.3.0 Dec 18, 2024
3.2.1 Oct 7, 2024
0.1.0-pre.3 Mar 29, 2021

#389 in Development tools

Download history 657/week @ 2024-10-25 770/week @ 2024-11-01 522/week @ 2024-11-08 515/week @ 2024-11-15 754/week @ 2024-11-22 830/week @ 2024-11-29 677/week @ 2024-12-06 600/week @ 2024-12-13 346/week @ 2024-12-20 330/week @ 2024-12-27 262/week @ 2025-01-03 507/week @ 2025-01-10 416/week @ 2025-01-17 490/week @ 2025-01-24 520/week @ 2025-01-31 709/week @ 2025-02-07

2,206 downloads per month

MIT/Apache

63KB
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
~167K SLoC