#link #dynamic #lints #linker #copy #wrapper #tools #default #name #create

app dylint-link

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

54 releases (stable)

2.1.5 Feb 27, 2023
2.1.3 Jan 21, 2023
2.1.1 Nov 30, 2022
2.0.9 Jul 19, 2022
0.1.0-pre.3 Mar 29, 2021

#633 in Command line utilities

Download history 371/week @ 2022-11-28 259/week @ 2022-12-05 388/week @ 2022-12-12 367/week @ 2022-12-19 196/week @ 2022-12-26 204/week @ 2023-01-02 293/week @ 2023-01-09 415/week @ 2023-01-16 372/week @ 2023-01-23 495/week @ 2023-01-30 514/week @ 2023-02-06 494/week @ 2023-02-13 348/week @ 2023-02-20 476/week @ 2023-02-27 388/week @ 2023-03-06 344/week @ 2023-03-13

1,583 downloads per month

MIT/Apache

46KB
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.5MB
~139K SLoC