Skip to content

Commit aa58318

Browse files
committed
Add some more benefits.
1 parent 91a1a38 commit aa58318

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

text/0000-dll-kind.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ A real advantage of this feature, however, is the fact that symbols will be *gua
1717

1818
Sometimes a crate may know exactly which dll it wants to link against, but which import library it ends up linking against is unknown. In particular the d3dcompiler.lib provided by the Windows SDK can link to several different versions of the d3dcompiler dll depending on which version of the Windows SDK the user has installed. `kind="dll"` would allow `winapi` to link to a specific version of that dll and ensure the symbols are correct for that version.
1919

20+
This would also allow `winapi` to not have to bundle import libraries for the `pc-windows-gnu` targets, saving on bandwidth and disk space for users.
21+
2022
# Guide-level explanation
2123
[guide-level-explanation]: #guide-level-explanation
2224

@@ -84,3 +86,7 @@ No native languages are known of that allow link time linking to symbols from dl
8486
[future-possibilities]: #future-possibilities
8587

8688
With the features described in this RFC, we would be one step closer towards a fully standalone pure Rust target for Windows that does not rely on any external libraries (aside from the obvious and unavoidable runtime dependence on system libraries), allowing for easy installation and incredibly easy cross compilation.
89+
90+
If that were to happen, we'd no longer need to pretend the pc-windows-gnu toolchain is standalone, and we'd be able to stop bundling MinGW bits entirely in favor of the user's own MinGW installation, thereby resolving a bunch of issues.
91+
92+
Also users would stop complaining about having to install several gigabytes of VC++ just to link their Rust binaries.

0 commit comments

Comments
 (0)