The
link!macro for linking to Windows functions without import libraries.
- 📦 crates.io
- 📖 docs.rs
- 🚀 Getting started
- 📁 Source
windows-link provides the link! macro for declaring external Windows
functions. It uses raw-dylib, so — unlike the equivalent macro in
windows-targets — it does not require import .lib files.
The macro declares the function and also emits a pub type alias of the same
name describing the function-pointer signature.
The remainder of this page covers how the crate is built and maintained. It is
for contributors and is not needed to use windows-link.
Entirely hand-written — a single link! macro with per-architecture expansions.
No generated code.
Run cargo test -p windows-link; see also the workspace test crates.