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 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.