Skip to content

Commit

Permalink
Add wininet.h bindings.
Browse files Browse the repository at this point in the history
This also includes a single definition from winineti.h, and a list of
symbols dumped from wininet.dll that *aren't* in wininet.h.

Includes the wininet.dll import libs for MinGW.
  • Loading branch information
DanielKeep committed Nov 7, 2016
1 parent 6aa48f4 commit 6247a8f
Show file tree
Hide file tree
Showing 8 changed files with 2,696 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ headers = ["headers-shared", "headers-um", "headers-vc", "headers-winrt"]
"um-wincon",
"um-winevt",
"um-wingdi",
"um-wininet",
"um-winineti",
"um-winioctl",
"um-winnt",
"um-winreg",
Expand All @@ -96,6 +98,8 @@ headers = ["headers-shared", "headers-um", "headers-vc", "headers-winrt"]
"um-winevt" = ["shared-minwindef", "um-winnt"]
"um-wingdi" = ["shared-basetsd", "shared-minwindef", "shared-windef", "um-winnt"]
"um-winioctl" = ["shared-minwindef", "um-winnt"]
"um-wininet" = ["shared-basetsd", "shared-minwindef", "shared-ntdef", "shared-windef", "um-minwinbase", "um-winineti", "um-winnt", "wininet"]
"um-winineti" = ["shared-minwindef"]
"um-winnt" = ["shared-basetsd", "shared-guiddef", "shared-minwindef", "vc-excpt"]
"um-winreg" = ["shared-basetsd", "shared-minwindef", "um-winnt"]
"um-winuser" = ["shared-basetsd", "shared-minwindef", "shared-windef", "um-wingdi", "um-winnt"]
Expand All @@ -117,8 +121,10 @@ headers = ["headers-shared", "headers-um", "headers-vc", "headers-winrt"]
libraries = [
"kernel32",
"ncrypt",
"ole32"
"ole32",
"wininet",
]
"kernel32" = []
"ole32" = []
"ncrypt" = []
"wininet" = []
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const LIBS: &'static [&'static str] = &[
"kernel32",
"ncrypt",
"ole32",
"wininet",
];
fn main() {
let target = var("TARGET").unwrap();
Expand Down
Binary file added i686/lib/libwininet.a
Binary file not shown.
2 changes: 2 additions & 0 deletions src/um/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#[cfg(feature = "um-winevt")] pub mod winevt;
#[cfg(feature = "um-wingdi")] pub mod wingdi;
#[cfg(feature = "um-winioctl")] pub mod winioctl;
#[cfg(feature = "um-wininet")] pub mod wininet;
#[cfg(feature = "um-winineti")] pub mod winineti;
#[cfg(feature = "um-winnt")] pub mod winnt;
#[cfg(feature = "um-winreg")] pub mod winreg;
#[cfg(feature = "um-winuser")] pub mod winuser;
Expand Down
Loading

0 comments on commit 6247a8f

Please sign in to comment.