当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
4 Star 0 Fork 3

OpenHarmony/third_party_rust_mio
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Cargo.toml 2.42 KB
一键复制 编辑 原始数据 按行查看 历史
Thomas de Zeeuw 提交于 2023-02-14 11:57 . Release v0.8.6
[package]
edition = "2018"
name = "mio"
# When releasing to crates.io:
# - Update CHANGELOG.md.
# - Create git tag
version = "0.8.6"
license = "MIT"
authors = [
"Carl Lerche <me@carllerche.com>",
"Thomas de Zeeuw <thomasdezeeuw@gmail.com>",
"Tokio Contributors <team@tokio.rs>",
]
description = "Lightweight non-blocking I/O."
homepage = "https://github.com/tokio-rs/mio"
repository = "https://github.com/tokio-rs/mio"
readme = "README.md"
keywords = ["io", "async", "non-blocking"]
categories = ["asynchronous"]
include = [
"Cargo.toml",
"LICENSE",
"README.md",
"CHANGELOG.md",
"src/**/*.rs",
"examples/**/*.rs",
]
# For documentation of features see the `mio::features` module.
[features]
# By default Mio only provides a shell implementation.
default = []
# Enables the `Poll` and `Registry` types.
os-poll = []
# Enables additional OS specific extensions, e.g. Unix `pipe(2)`.
os-ext = [
"os-poll",
"windows-sys/Win32_System_Pipes",
"windows-sys/Win32_Security",
]
# Enables `mio::net` module containing networking primitives.
net = []
[dependencies]
log = "0.4.8"
[target.'cfg(unix)'.dependencies]
libc = "0.2.121"
[target.'cfg(windows)'.dependencies.windows-sys]
version = "0.45"
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(target_os = "wasi")'.dependencies]
wasi = "0.11.0"
libc = "0.2.121"
[dev-dependencies]
env_logger = { version = "0.8.4", default-features = false }
rand = "0.8"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
targets = [
"aarch64-apple-ios",
"aarch64-linux-android",
"wasm32-wasi",
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
"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"]
[[example]]
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"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony/third_party_rust_mio.git
git@gitee.com:openharmony/third_party_rust_mio.git
openharmony
third_party_rust_mio
third_party_rust_mio
master

搜索帮助