Update iovec with patch making it use winapi-0.3
Ximin Luo
5 years ago
1 | 1 |
|
2 | 2 |
* Package iovec 0.1.2 from crates.io using debcargo 2.2.3
|
3 | 3 |
|
4 | |
-- Paride Legovini <pl@ninthfloor.org> Sat, 14 Jul 2018 13:07:55 +0200
|
|
4 |
-- Ximin Luo <infinity0@debian.org> Mon, 16 Jul 2018 01:17:07 -0700
|
|
0 |
From b90b433f58fb8d64ad6c67d8080cf3da1fce3543 Mon Sep 17 00:00:00 2001
|
|
1 |
From: Steffen Butzer <steffen.butzer@outlook.com>
|
|
2 |
Date: Thu, 21 Dec 2017 15:51:01 +0100
|
|
3 |
Subject: [PATCH] migrate to winapi 0.3
|
|
4 |
|
|
5 |
---
|
|
6 |
Cargo.toml | 2 +-
|
|
7 |
src/sys/windows.rs | 3 ++-
|
|
8 |
2 files changed, 3 insertions(+), 2 deletions(-)
|
|
9 |
|
|
10 |
diff --git a/Cargo.toml b/Cargo.toml
|
|
11 |
index 25ff582..ee1c0d3 100644
|
|
12 |
--- a/Cargo.toml
|
|
13 |
+++ b/Cargo.toml
|
|
14 |
@@ -17,3 +17,3 @@ categories = ["network-programming", "api-bindings"]
|
|
15 |
version = "0.2"
|
|
16 |
-[target."cfg(windows)".dependencies.winapi]
|
|
17 |
-version = "0.2"
|
|
18 |
+[target."cfg(windows)".dependencies]
|
|
19 |
+winapi = { version = "0.3", features = ["minwindef", "ws2def"] }
|
|
20 |
diff --git a/src/sys/windows.rs b/src/sys/windows.rs
|
|
21 |
index 18681a4..8cc6351 100644
|
|
22 |
--- a/src/sys/windows.rs
|
|
23 |
+++ b/src/sys/windows.rs
|
|
24 |
@@ -1,3 +1,4 @@
|
|
25 |
-use winapi::{WSABUF, DWORD};
|
|
26 |
+use winapi::shared::minwindef::DWORD;
|
|
27 |
+use winapi::shared::ws2def::WSABUF;
|
|
28 |
use std::{mem, slice, u32};
|
|
29 |
|