Skip to content

Commit

Permalink
Merge pull request #159 from spyder-ide/dependabot/cargo/findlib/wind…
Browse files Browse the repository at this point in the history
…ows-0.11.0

PR: Update windows requirement from 0.10.0 to 0.11.0 in /findlib
  • Loading branch information
andfoy authored Jun 10, 2021
2 parents 269bdb2 + 8e63e5d commit ab1ef57
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ features = ["extension-module"]

[build-dependencies]
cxx-build = {version = "1.0.45", features = ["parallel"]}
pywinpty_findlib = { version = "=0.1.0", path = "findlib" }
pywinpty_findlib = { version = "=0.3.0", path = "findlib" }
which = "4.1.0"

[package.metadata.docs.rs]
Expand Down
4 changes: 1 addition & 3 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use cxx_build::CFG;
use pywinpty_findlib::win_calls::Windows::Win32::System::SystemServices::{
GetModuleHandleW, GetProcAddress,
};
use pywinpty_findlib::{GetModuleHandleW, GetProcAddress};
use std::env;
use std::i64;
use std::path::Path;
Expand Down
6 changes: 3 additions & 3 deletions findlib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pywinpty_findlib"
version = "0.1.0"
version = "0.3.0"
authors = ["Edgar Andres Margffoy Tuay <andfoy@gmail.com>"]
edition = "2018"
license = "MIT"
Expand All @@ -9,7 +9,7 @@ description = "Crate that exposes GetProcAddress and GetModuleHandleW to detect
repository = "https://github.com/spyder-ide/pywinpty"

[dependencies]
windows = "0.10.0"
windows = "0.11.0"

[build-dependencies]
windows = "0.10.0"
windows = "0.11.0"
2 changes: 1 addition & 1 deletion findlib/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ use windows;

fn main() {
windows::build!(
Windows::Win32::System::SystemServices::{GetProcAddress, GetModuleHandleW}
Windows::Win32::System::LibraryLoader::{GetProcAddress, GetModuleHandleW}
);
}
4 changes: 3 additions & 1 deletion findlib/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
extern crate windows;

pub mod win_calls {
mod win_calls {
windows::include_bindings!();
}

pub use win_calls::{Windows::Win32::System::LibraryLoader::{GetProcAddress, GetModuleHandleW}};

0 comments on commit ab1ef57

Please sign in to comment.