aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml.orig
diff options
context:
space:
mode:
Diffstat (limited to 'Cargo.toml.orig')
-rw-r--r--Cargo.toml.orig50
1 files changed, 28 insertions, 22 deletions
diff --git a/Cargo.toml.orig b/Cargo.toml.orig
index aa2e677..c5052a7 100644
--- a/Cargo.toml.orig
+++ b/Cargo.toml.orig
@@ -2,11 +2,9 @@
edition = "2018"
name = "mio"
# When releasing to crates.io:
-# - Update html_root_url.
# - Update CHANGELOG.md.
-# - Update doc URL.
# - Create git tag
-version = "0.7.13"
+version = "0.8.5"
license = "MIT"
authors = [
"Carl Lerche <me@carllerche.com>",
@@ -14,7 +12,6 @@ authors = [
"Tokio Contributors <team@tokio.rs>",
]
description = "Lightweight non-blocking IO"
-documentation = "https://docs.rs/mio/0.7.13"
homepage = "https://github.com/tokio-rs/mio"
repository = "https://github.com/tokio-rs/mio"
readme = "README.md"
@@ -37,32 +34,37 @@ default = []
# Enables the `Poll` and `Registry` types.
os-poll = []
# Enables additional OS specific extensions, e.g. Unix `pipe(2)`.
-os-ext = ["os-poll"]
+os-ext = [
+ "os-poll",
+ "windows-sys/Win32_System_Pipes",
+ "windows-sys/Win32_Security",
+]
# Enables `mio::net` module containing networking primitives.
net = []
-# Deprecated features, will be removed in a future version.
-extra-docs = [] # Docs are now always present.
-tcp = ["net"] # Replaced with "net" feature.
-udp = ["net"] # Replaced with "net" feature.
-uds = ["net"] # Replaced with "net" feature.
-pipe = ["os-ext"] # Replaced with "os-ext" feature.
-os-util = ["os-ext"]# Replaced with "os-ext" feature.
-
[dependencies]
log = "0.4.8"
[target.'cfg(unix)'.dependencies]
-libc = "0.2.86"
+libc = "0.2.121"
+
+[target.'cfg(windows)'.dependencies.windows-sys]
+version = "0.42"
+features = [
+ "Win32_Foundation", # Basic types eg HANDLE
+ "Win32_Networking_WinSock", # winsock2 types/functions
+ "Win32_Storage_FileSystem", # Enables NtCreateFile
+ "Win32_System_IO", # IO types like OVERLAPPED etc
+ "Win32_System_WindowsProgramming", # General future used for various types/funcs
+]
-[target.'cfg(windows)'.dependencies]
-miow = "0.3.6"
-winapi = { version = "0.3", features = ["winsock2", "mswsock", "mstcpip"] }
-ntapi = "0.3"
+[target.'cfg(target_os = "wasi")'.dependencies]
+wasi = "0.11.0"
+libc = "0.2.121"
[dev-dependencies]
-env_logger = { version = "0.6.2", default-features = false }
-rand = "0.4"
+env_logger = { version = "0.8.4", default-features = false }
+rand = "0.8"
[package.metadata.docs.rs]
all-features = true
@@ -70,17 +72,17 @@ rustdoc-args = ["--cfg", "docsrs"]
targets = [
"aarch64-apple-ios",
"aarch64-linux-android",
+ "wasm32-wasi",
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
- "x86_64-sun-solaris",
"x86_64-unknown-dragonfly",
"x86_64-unknown-freebsd",
+ "x86_64-unknown-illumos",
"x86_64-unknown-linux-gnu",
"x86_64-unknown-netbsd",
"x86_64-unknown-openbsd",
]
-
[package.metadata.playground]
features = ["os-poll", "os-ext", "net"]
@@ -89,5 +91,9 @@ name = "tcp_server"
required-features = ["os-poll", "net"]
[[example]]
+name = "tcp_listenfd_server"
+required-features = ["os-poll", "net"]
+
+[[example]]
name = "udp_server"
required-features = ["os-poll", "net"]