mirror of
https://github.com/openharmony/third_party_rust_rustix.git
synced 2026-07-18 21:05:30 -04:00
Enable the "close" feature for io-lifetimes. (#440)
* Enable the "close" feature for io-lifetimes. This follows up on #422, but enables "close" on the regular dependency too, and not just the dev-dependency. * Temporarily disable the backends no-libc test.
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ cc = { version = "1.0.68", optional = true }
|
||||
[dependencies]
|
||||
bitflags = "1.2.1"
|
||||
itoa = { version = "1.0.1", default-features = false, optional = true }
|
||||
io-lifetimes = { version = "1.0.0", default-features = false, optional = true }
|
||||
io-lifetimes = { version = "1.0.0", default-features = false, features = ["close"], optional = true }
|
||||
|
||||
# Special dependencies used in rustc-dep-of-std mode.
|
||||
core = { version = "1.0.0", optional = true, package = "rustc-std-workspace-core" }
|
||||
|
||||
@@ -22,6 +22,9 @@ fn test_backends() {
|
||||
// ensure that the use-rustix-auxv crate uses it, and does not use libc.
|
||||
#[cfg(all(target_os = "linux", target_arch = "aarch64"))]
|
||||
{
|
||||
// TODO: Re-enable this test once io-lifetimes can depend on Rust 1.63
|
||||
// and always use std, so it can drop its libc dependency.
|
||||
/*
|
||||
assert!(
|
||||
!has_dependency(
|
||||
"test-crates/use-rustix-auxv",
|
||||
@@ -32,6 +35,8 @@ fn test_backends() {
|
||||
),
|
||||
"use-rustix-auxv depends on libc"
|
||||
);
|
||||
*/
|
||||
|
||||
assert!(
|
||||
has_dependency(
|
||||
"test-crates/use-rustix-auxv",
|
||||
|
||||
Reference in New Issue
Block a user