#link #linker #path #architecture

app dylint-link

A wrapper around Rust's default linker to help create Dyling libraries

69 releases (stable)

new 2.5.0 Nov 17, 2023
2.4.2 Sep 29, 2023
2.1.11 Jul 8, 2023
2.1.7 Mar 26, 2023
0.1.0-pre.3 Mar 29, 2021

#14 in Configuration

Download history 806/week @ 2023-08-02 468/week @ 2023-08-09 695/week @ 2023-08-16 300/week @ 2023-08-23 739/week @ 2023-08-30 487/week @ 2023-09-06 660/week @ 2023-09-13 500/week @ 2023-09-20 600/week @ 2023-09-27 499/week @ 2023-10-04 442/week @ 2023-10-11 421/week @ 2023-10-18 632/week @ 2023-10-25 527/week @ 2023-11-01 775/week @ 2023-11-08 457/week @ 2023-11-15

2,541 downloads per month

MIT/Apache

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

~6–17MB
~222K SLoC