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:
Dan Gohman
2022-11-07 17:39:05 -08:00
committed by GitHub
parent e15a462fd3
commit 12dd67ff6a
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -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" }
+5
View File
@@ -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",