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

Update winapi to 0.3.4 #91

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repository = "https://github.com/servo/heapsize"
build = "build.rs"

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

[features]
unstable = []
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//! Data structure measurement.

#[cfg(target_os = "windows")]
extern crate kernel32;
extern crate winapi;

#[cfg(target_os = "windows")]
use kernel32::{GetProcessHeap, HeapSize, HeapValidate};
use winapi::um::heapapi::{GetProcessHeap, HeapSize, HeapValidate};
use std::borrow::Cow;
use std::cell::{Cell, RefCell};
use std::collections::{BTreeMap, HashSet, HashMap, LinkedList, VecDeque};
Expand Down