• Home
  • Raw
  • Download

Lines Matching +full:use +full:- +full:libc

1 use std::process::Command;
6 // ensure that the use-default crate uses it. in test_backends()
11 "test-crates/use-default", in test_backends()
15 "linux-raw-sys" in test_backends()
17 "use-default does not depend on linux-raw-sys" in test_backends()
22 // ensure that the use-rustix-auxv crate uses it, and does not use libc. in test_backends()
25 // TODO: Re-enable this test once io-lifetimes can depend on Rust 1.63 in test_backends()
26 // and always use std, so it can drop its libc dependency. in test_backends()
30 "test-crates/use-rustix-auxv", in test_backends()
34 "libc" in test_backends()
36 "use-rustix-auxv depends on libc" in test_backends()
42 "test-crates/use-rustix-auxv", in test_backends()
46 "linux-raw-sys" in test_backends()
48 "use-rustix-auxv does not depend on linux-raw-sys" in test_backends()
53 let libc_dep = "windows-sys"; in test_backends()
55 let libc_dep = "libc"; in test_backends()
57 // Test the use-libc crate, which enables the "use-libc" cargo feature. in test_backends()
59 has_dependency("test-crates/use-libc", &[], &[], &["RUSTFLAGS"], libc_dep), in test_backends()
60 "use-libc doesn't depend on {}", in test_backends()
64 // Test the use-default crate with `--cfg=rustix_use_libc`. in test_backends()
67 "test-crates/use-default", in test_backends()
69 &[("RUSTFLAGS", "--cfg=rustix_use_libc")], in test_backends()
73 "use-default with --cfg=rustix_use_libc does not depend on {}", in test_backends()
77 // Test the use-default crate with `--features=rustix/use-libc`. in test_backends()
80 "test-crates/use-default", in test_backends()
81 &["--features=rustix/use-libc"], in test_backends()
86 "use-default with --features=rustix/use-libc does not depend on {}", in test_backends()
100 ) -> bool { in has_dependency()
105 .arg("--quiet") in has_dependency()
106 .arg("--edges=normal") in has_dependency()
107 .arg(&format!("--invert={}", dependency)) in has_dependency()
120 // `cargo tree --invert=foo` can fail in two different ways: it exits with in has_dependency()
121 // a non-zero status if the dependency is not present in the Cargo.toml in has_dependency()