76 releases (stable)

new 3.1.2 May 15, 2024
3.1.0 Apr 30, 2024
3.0.0 Mar 15, 2024
2.6.1 Jan 23, 2024
0.1.0-pre.3 Mar 29, 2021

#287 in Development tools

Download history 222/week @ 2024-01-25 267/week @ 2024-02-01 319/week @ 2024-02-08 899/week @ 2024-02-15 914/week @ 2024-02-22 355/week @ 2024-02-29 398/week @ 2024-03-07 620/week @ 2024-03-14 424/week @ 2024-03-21 906/week @ 2024-03-28 520/week @ 2024-04-04 683/week @ 2024-04-11 493/week @ 2024-04-18 562/week @ 2024-04-25 316/week @ 2024-05-02 380/week @ 2024-05-09

1,849 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
~113K SLoC