Skip to content

Latest commit

History

History
27 lines (17 loc) 路 1001 Bytes

File metadata and controls

27 lines (17 loc) 路 1001 Bytes

windows-link

The link! macro for linking to Windows functions without import libraries.

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.


Internal documentation

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.

How it's built

Entirely hand-written - a single link! macro with per-architecture expansions. No generated code.

Testing

Run cargo test -p windows-link; see also the workspace test crates.