Expand description
Hello, sailor!
The purpose of this is to find the folders that contain libraries you may need to link against, on Windows, if you are linking with any compiled C or C++ code. This will be necessary for many non-C++ programming language environments that wnat to provide compatibility.
We find the following:
- place where the Visual Studio libraries live (e.g.
libvcruntime.lib
) - where the linker and compiler executables live (e.g.
link.exe
) - where the Windows SDK libraries reside (e.g.
kernel32.lib
,libucrt.lib
)
We all with you didn’t have to worry about so many weird dependencies, but we don’t erally have a choice about this, sadly.
§Notes
One other shortcut I took is that this is hardcoded to return the folders for x64 libraries. If enough people want x86 or arm, it can be worked in here.
§Unsafe usage
This crate contains unsafe
code as we speak to the Windows APIs
& COM, which is unsafe by definition.
§Supported platforms
We support Windows & Visual Studio only, as those are the main reasons for this crate to exist.
If your need is bigger than this, you might go check the cc crate.
Structs§
- Info
- Information about Windows SDK and VC toolchain.
- SdkInfo
- Information about Windows SDK.
- Toolchain
Info - Information about VC toolchain.
Functions§
- find_
vc_ and_ windows_ sdk - Tries to detect the available VC toolchain and latest Windows SDK, returns the result as a
Info
.