Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Commit 6836052

Browse files
author
bors-servo
authored
Auto merge of #91 - debris:update_winapi, r=jdm
Update winapi to 0.3.4 `winapi` features enabled - `std` - to make it `c_void` pointer compatible [link](https://docs.rs/winapi/*/x86_64-pc-windows-msvc/src/winapi/lib.rs.html#31) with the one used by heapsize - `heapapi` - to enable `heapapi` [link](https://github.com/retep998/winapi-rs#why-am-i-getting-errors-about-unresolved-imports) <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/heapsize/91) <!-- Reviewable:end -->
2 parents 442120a + b1a5eca commit 6836052

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repository = "https://github.com/servo/heapsize"
88
build = "build.rs"
99

1010
[target.'cfg(windows)'.dependencies]
11-
kernel32-sys = "0.2.1"
11+
winapi = { version = "0.3.4", features = ["std", "heapapi"] }
1212

1313
[features]
1414
unstable = []

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//! Data structure measurement.
22
33
#[cfg(target_os = "windows")]
4-
extern crate kernel32;
4+
extern crate winapi;
55

66
#[cfg(target_os = "windows")]
7-
use kernel32::{GetProcessHeap, HeapSize, HeapValidate};
7+
use winapi::um::heapapi::{GetProcessHeap, HeapSize, HeapValidate};
88
use std::borrow::Cow;
99
use std::cell::{Cell, RefCell};
1010
use std::collections::{BTreeMap, HashSet, HashMap, LinkedList, VecDeque};

0 commit comments

Comments
 (0)