Skip to content

Commit

Permalink
Downgrade dependencies and disable tests to compile under Rust 1.48.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Oct 12, 2023
1 parent ded8986 commit 6dc7ba9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 196 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ jobs:
cargo update --package=io-lifetimes --precise 1.0.6
cd - >/dev/null
done
cargo update --package=tempfile --precise=3.6.0
- run: cargo check --workspace --release -vv --all-targets
- run: cargo check --workspace --release -vv --features=all-apis --all-targets
Expand Down Expand Up @@ -479,6 +480,7 @@ jobs:
cargo update --package=io-lifetimes --precise 1.0.6
cd - >/dev/null
done
cargo update --package=tempfile --precise=3.6.0
- run: |
# Run the tests, and check the prebuilt release libraries.
Expand Down
12 changes: 0 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,24 +73,12 @@ tempfile = "3.2.0"
libc = "0.2.133"
libc_errno = { package = "errno", version = "0.3.0", default-features = false }
io-lifetimes = { version = "1.0.0", default-features = false, features = ["close"] }
# Don't upgrade to serial_test 0.7 for now because it depends on a
# `parking_lot_core` version which is not compatible with our MSRV of 1.48.
serial_test = "0.6"
memoffset = "0.7.1"
flate2 = "1.0"

[target.'cfg(all(criterion, not(any(target_os = "emscripten", target_os = "wasi"))))'.dev-dependencies]
criterion = "0.4"

[target.'cfg(windows)'.dev-dependencies]
ctor = "0.1.21"

# Add Criterion configuration, as described here:
# <https://bheisler.github.io/criterion.rs/book/getting_started.html#step-1---add-dependency-to-cargotoml>
[[bench]]
name = "mod"
harness = false

[package.metadata.docs.rs]
features = ["all-apis"]
rustdoc-args = ["--cfg", "doc_cfg"]
Expand Down
182 changes: 0 additions & 182 deletions benches/mod.rs

This file was deleted.

3 changes: 1 addition & 2 deletions tests/process/wait.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
use libc::{kill, SIGSTOP};
use rustix::process;
use serial_test::serial;
use std::process::{Command, Stdio};

// These tests must execute serially to prevent race condition, where
// `test_wait` waits for the child process spawned in `test_waitpid`, causing
// the tests to get stuck.

#[test]
#[serial]
#[ignore]
fn test_waitpid() {
let child = Command::new("yes")
.stdout(Stdio::null())
Expand Down

0 comments on commit 6dc7ba9

Please sign in to comment.