1 unstable release

Uses old Rust 2015

0.1.0 Jan 17, 2019

#188 in Windows APIs

Download history 18879/week @ 2024-03-14 20739/week @ 2024-03-21 19625/week @ 2024-03-28 21126/week @ 2024-04-04 22857/week @ 2024-04-11 21335/week @ 2024-04-18 21940/week @ 2024-04-25 22746/week @ 2024-05-02 23662/week @ 2024-05-09 23821/week @ 2024-05-16 23939/week @ 2024-05-23 26653/week @ 2024-05-30 23821/week @ 2024-06-06 25677/week @ 2024-06-13 24274/week @ 2024-06-20 21150/week @ 2024-06-27

100,067 downloads per month
Used in 154 crates (2 directly)

MIT license

10KB
66 lines

vswhom.rs TravisCI Build Status AppVeyorCI Build Status Licence

FFI to Jon Blow's VS discovery script.

Documentation


lib.rs:

FFI to Jon Blow's VS discovery script.

See the associated funxions on VsFindResult for more specific info, but I'll copy over some usage information from the original file:

The purpose of this file 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 want to provide compatibility.

We find the place where the Visual Studio libraries live (for example, libvcruntime.lib), where the linker and compiler executables live (for example, link.exe), and where the Windows SDK libraries reside (kernel32.lib, libucrt.lib).

One other shortcut I took is that this is hardcoded to return the folders for x64 libraries. If you want x86 or arm, you can make slight edits to the code below, or, if enough people want this, I can work it in here.

Dependencies

~73KB