75 releases (stable)

new 3.1.1 May 14, 2024
3.0.0 Mar 15, 2024
2.6.1 Jan 23, 2024
2.5.0 Nov 17, 2023
0.1.0-pre.3 Mar 29, 2021

#302 in Development tools

Download history 188/week @ 2024-01-22 260/week @ 2024-01-29 288/week @ 2024-02-05 652/week @ 2024-02-12 848/week @ 2024-02-19 655/week @ 2024-02-26 361/week @ 2024-03-04 661/week @ 2024-03-11 387/week @ 2024-03-18 315/week @ 2024-03-25 1109/week @ 2024-04-01 559/week @ 2024-04-08 551/week @ 2024-04-15 581/week @ 2024-04-22 429/week @ 2024-04-29 320/week @ 2024-05-06

1,911 downloads per month

MIT/Apache

57KB
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

~3–11MB
~115K SLoC