Skip to content

Commit 5e52a63

Browse files
authored
Add module for taking ownership of inherited file descriptors (#56)
* Move inherited_fds module from rustutils library. * Clean up and fix for new version of nix. * Run tests with cargo-nextest. The inherited FD tests need to be run in separate processes, which this achieves. * Add child process example to readme and rustdoc. * Add changelog.
2 parents 35e63d0 + 9ab84d4 commit 5e52a63

7 files changed

Lines changed: 723 additions & 9 deletions

File tree

.github/workflows/rust.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v6
18+
- uses: taiki-e/install-action@nextest
1819
- name: Build
1920
run: cargo build
2021
- name: Run tests
21-
run: cargo test
22+
run: cargo nextest run
23+
- name: Run doctests
24+
run: cargo test --doc
2225
- name: Run clippy
2326
uses: actions-rs/clippy-check@v1
2427
with:
@@ -38,12 +41,10 @@ jobs:
3841
RUSTC_BOOTSTRAP: 1
3942
steps:
4043
- uses: actions/checkout@v6
41-
- name: Install cargo-llvm-cov
42-
uses: taiki-e/install-action@v2
43-
with:
44-
tool: cargo-llvm-cov
44+
- uses: taiki-e/install-action@nextest
45+
- uses: taiki-e/install-action@cargo-llvm-cov
4546
- name: Run tests with coverage
46-
run: cargo llvm-cov test --all-features --codecov --output-path codecov-report.json
47+
run: cargo llvm-cov nextest --all-features --codecov --output-path codecov-report.json
4748
- name: Upload coverage to codecov.io
4849
uses: codecov/codecov-action@v6
4950
with:

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
## Unreleased
4+
5+
### New features
6+
7+
- Added `inherited` module for taking ownership of inherited file descriptors.

0 commit comments

Comments
 (0)