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

Commit 32615cb

Browse files
author
bors-servo
authored
Auto merge of #93 - debris:update_winapi_x, r=jdm
Update winapi to 0.3.4 reopened #91 <!-- 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/93) <!-- Reviewable:end -->
2 parents aac20b2 + 2c26461 commit 32615cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

+1-1
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

+2-2
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)