aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-06-15 21:44:38 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-06-15 21:44:38 +0000
commit10bb2df624d460989f1572c41b0ceaba6c6f9a9e (patch)
treed4331fc0ae40bfa56d8e3a9f2b73f914383f3447
parent3031e295e0b6be45fd423a0545b0b04baa4a500a (diff)
parentac26036f346cc3eab333781d76395933faf6daf6 (diff)
downloadmio-10bb2df624d460989f1572c41b0ceaba6c6f9a9e.tar.gz
Change-Id: Id12140245b499a756d79b101c580a1171d764a4e
-rw-r--r--.cargo_vcs_info.json2
-rw-r--r--Android.bp38
-rw-r--r--CHANGELOG.md15
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml4
-rw-r--r--Cargo.toml.orig4
-rw-r--r--METADATA8
-rw-r--r--TEST_MAPPING30
-rw-r--r--cargo2android.json10
-rw-r--r--src/lib.rs2
-rw-r--r--src/sys/unix/selector/epoll.rs2
-rw-r--r--src/sys/unix/selector/kqueue.rs2
-rw-r--r--src/sys/unix/selector/mod.rs10
13 files changed, 27 insertions, 102 deletions
diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json
index a4887c5..d513c37 100644
--- a/.cargo_vcs_info.json
+++ b/.cargo_vcs_info.json
@@ -1,5 +1,5 @@
{
"git": {
- "sha1": "75f41fb304d299dfbc07679d15193e03273c4597"
+ "sha1": "772c692150c711d7bdd72b5c6287072b8914e519"
}
}
diff --git a/Android.bp b/Android.bp
index 2a9d5d9..f8e17c2 100644
--- a/Android.bp
+++ b/Android.bp
@@ -22,8 +22,6 @@ rust_library {
name: "libmio",
host_supported: true,
crate_name: "mio",
- cargo_env_compat: true,
- cargo_pkg_version: "0.7.13",
srcs: ["src/lib.rs"],
edition: "2018",
features: [
@@ -41,40 +39,12 @@ rust_library {
],
apex_available: [
"//apex_available:platform",
- "com.android.bluetooth",
"com.android.resolv",
- "com.android.uwb",
],
- vendor_available: true,
min_sdk_version: "29",
}
-rust_test {
- name: "mio_test_src_lib",
- host_supported: true,
- crate_name: "mio",
- cargo_env_compat: true,
- cargo_pkg_version: "0.7.13",
- srcs: ["src/lib.rs"],
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "net",
- "os-ext",
- "os-poll",
- "os-util",
- "tcp",
- "udp",
- "uds",
- ],
- rustlibs: [
- "libenv_logger",
- "liblibc",
- "liblog_rust",
- "librand",
- ],
-}
+// dependent_library ["feature_list"]
+// cfg-if-1.0.0
+// libc-0.2.94 "default,std"
+// log-0.4.14 "std"
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4e12fc3..72cb770 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,18 +1,3 @@
-# 0.7.13
-
-## Fixes
-
-* Fix `Registry::try_clone` invalid usage of `F_DUPFD_CLOEXEC` (#1497,
- https://github.com/tokio-rs/mio/commit/2883f5c1f35bf1a59682c5ffc4afe6b97d7d6e68).
-
-# 0.7.12 (yanked)
-
-## Fixes
-
-* Set `FD_CLOEXEC` when calling `Registry::try_clone`
- (https://github.com/tokio-rs/mio/commit/d1617b567ff6bc669d71e367d22e0e93ff7e2e24 for epoll and
- (https://github.com/tokio-rs/mio/commit/b367a05e408ca90a26383c3aa16d8a16f019dc59 for kqueue).
-
# 0.7.11
## Fixes
diff --git a/Cargo.lock b/Cargo.lock
index 8a0bb77..c91bfb8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -40,7 +40,7 @@ dependencies = [
[[package]]
name = "mio"
-version = "0.7.13"
+version = "0.7.11"
dependencies = [
"env_logger",
"libc",
diff --git a/Cargo.toml b/Cargo.toml
index 3a103b3..62090ff 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,12 +13,12 @@
[package]
edition = "2018"
name = "mio"
-version = "0.7.13"
+version = "0.7.11"
authors = ["Carl Lerche <me@carllerche.com>", "Thomas de Zeeuw <thomasdezeeuw@gmail.com>", "Tokio Contributors <team@tokio.rs>"]
include = ["Cargo.toml", "LICENSE", "README.md", "CHANGELOG.md", "src/**/*.rs", "examples/**/*.rs"]
description = "Lightweight non-blocking IO"
homepage = "https://github.com/tokio-rs/mio"
-documentation = "https://docs.rs/mio/0.7.13"
+documentation = "https://docs.rs/mio/0.7.7"
readme = "README.md"
keywords = ["io", "async", "non-blocking"]
categories = ["asynchronous"]
diff --git a/Cargo.toml.orig b/Cargo.toml.orig
index aa2e677..a14d17d 100644
--- a/Cargo.toml.orig
+++ b/Cargo.toml.orig
@@ -6,7 +6,7 @@ name = "mio"
# - Update CHANGELOG.md.
# - Update doc URL.
# - Create git tag
-version = "0.7.13"
+version = "0.7.11"
license = "MIT"
authors = [
"Carl Lerche <me@carllerche.com>",
@@ -14,7 +14,7 @@ authors = [
"Tokio Contributors <team@tokio.rs>",
]
description = "Lightweight non-blocking IO"
-documentation = "https://docs.rs/mio/0.7.13"
+documentation = "https://docs.rs/mio/0.7.7"
homepage = "https://github.com/tokio-rs/mio"
repository = "https://github.com/tokio-rs/mio"
readme = "README.md"
diff --git a/METADATA b/METADATA
index 79077c2..eb89225 100644
--- a/METADATA
+++ b/METADATA
@@ -7,13 +7,13 @@ third_party {
}
url {
type: ARCHIVE
- value: "https://static.crates.io/crates/mio/mio-0.7.13.crate"
+ value: "https://static.crates.io/crates/mio/mio-0.7.11.crate"
}
- version: "0.7.13"
+ version: "0.7.11"
license_type: NOTICE
last_upgrade_date {
year: 2021
- month: 6
- day: 21
+ month: 4
+ day: 1
}
}
diff --git a/TEST_MAPPING b/TEST_MAPPING
index 88a3a20..fadb544 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -1,39 +1,23 @@
// Generated by update_crate_tests.py for tests that depend on this crate.
{
- "imports": [
- {
- "path": "external/rust/crates/futures-util"
- },
- {
- "path": "external/rust/crates/quiche"
- },
- {
- "path": "external/rust/crates/tokio"
- },
- {
- "path": "external/rust/crates/tokio-test"
- }
- ],
"presubmit": [
{
- "name": "doh_unit_test"
+ "name": "tokio-test_device_test_tests_macros"
},
{
- "name": "mio_test_src_lib"
+ "name": "tokio-test_device_test_tests_block_on"
},
{
- "name": "rustBinderTest"
- }
- ],
- "presubmit-rust": [
+ "name": "tokio-test_device_test_tests_io"
+ },
{
- "name": "doh_unit_test"
+ "name": "futures-util_device_test_src_lib"
},
{
- "name": "mio_test_src_lib"
+ "name": "tokio-test_device_test_src_lib"
},
{
- "name": "rustBinderTest"
+ "name": "quiche_device_test_src_lib"
}
]
}
diff --git a/cargo2android.json b/cargo2android.json
index 7b3f179..86c4a39 100644
--- a/cargo2android.json
+++ b/cargo2android.json
@@ -1,15 +1,11 @@
{
"apex-available": [
"//apex_available:platform",
- "com.android.bluetooth",
- "com.android.resolv",
- "com.android.uwb"
+ "com.android.resolv"
],
"dependencies": true,
"device": true,
"features": "os-poll,tcp,udp,uds,os-util",
"min-sdk-version": "29",
- "run": true,
- "vendor-available": true,
- "tests": true
-}
+ "run": true
+} \ No newline at end of file
diff --git a/src/lib.rs b/src/lib.rs
index 165a340..ad417c2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,4 +1,4 @@
-#![doc(html_root_url = "https://docs.rs/mio/0.7.13")]
+#![doc(html_root_url = "https://docs.rs/mio/0.7.11")]
#![deny(
missing_docs,
missing_debug_implementations,
diff --git a/src/sys/unix/selector/epoll.rs b/src/sys/unix/selector/epoll.rs
index 38667d6..76ee7f9 100644
--- a/src/sys/unix/selector/epoll.rs
+++ b/src/sys/unix/selector/epoll.rs
@@ -41,7 +41,7 @@ impl Selector {
}
pub fn try_clone(&self) -> io::Result<Selector> {
- syscall!(fcntl(self.ep, libc::F_DUPFD_CLOEXEC, super::LOWEST_FD)).map(|ep| Selector {
+ syscall!(dup(self.ep)).map(|ep| Selector {
// It's the same selector, so we use the same id.
#[cfg(debug_assertions)]
id: self.id,
diff --git a/src/sys/unix/selector/kqueue.rs b/src/sys/unix/selector/kqueue.rs
index b36a537..34f5340 100644
--- a/src/sys/unix/selector/kqueue.rs
+++ b/src/sys/unix/selector/kqueue.rs
@@ -87,7 +87,7 @@ impl Selector {
}
pub fn try_clone(&self) -> io::Result<Selector> {
- syscall!(fcntl(self.kq, libc::F_DUPFD_CLOEXEC, super::LOWEST_FD)).map(|kq| Selector {
+ syscall!(dup(self.kq)).map(|kq| Selector {
// It's the same selector, so we use the same id.
#[cfg(debug_assertions)]
id: self.id,
diff --git a/src/sys/unix/selector/mod.rs b/src/sys/unix/selector/mod.rs
index b73d645..7525898 100644
--- a/src/sys/unix/selector/mod.rs
+++ b/src/sys/unix/selector/mod.rs
@@ -33,13 +33,3 @@ mod kqueue;
target_os = "openbsd"
))]
pub(crate) use self::kqueue::{event, Event, Events, Selector};
-
-/// Lowest file descriptor used in `Selector::try_clone`.
-///
-/// # Notes
-///
-/// Usually fds 0, 1 and 2 are standard in, out and error. Some application
-/// blindly assume this to be true, which means using any one of those a select
-/// could result in some interesting and unexpected errors. Avoid that by using
-/// an fd that doesn't have a pre-determined usage.
-const LOWEST_FD: libc::c_int = 3;