-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from shell-pool/add-borrow-fd
add borrow_fd method to Slave and Master
- Loading branch information
Showing
17 changed files
with
187 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: nightly | ||
on: | ||
schedule: | ||
- cron: '04 05 * * *' | ||
|
||
jobs: | ||
deny: | ||
name: cargo deny --all-features check | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
- uses: moonrepo/setup-rust@b8edcc56aab474d90c7cf0bb8beeaf8334c15e9f | ||
with: | ||
channel: '1.74.0' | ||
bins: cargo-deny | ||
- run: sudo apt-get install libpam0g-dev | ||
- run: cargo deny --all-features check | ||
|
||
postsubmit: | ||
uses: ./.github/workflows/presubmit.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: presubmit | ||
on: [pull_request, workflow_call, workflow_dispatch] | ||
|
||
jobs: | ||
test: | ||
name: cargo test --all-features | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
- uses: moonrepo/setup-rust@b8edcc56aab474d90c7cf0bb8beeaf8334c15e9f | ||
with: | ||
channel: '1.74.0' | ||
- run: sudo apt-get install libpam0g-dev | ||
- run: cargo test --all-features | ||
- run: cargo test --no-default-features | ||
|
||
rustfmt: | ||
name: cargo +nightly fmt -- --check | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
- uses: moonrepo/setup-rust@b8edcc56aab474d90c7cf0bb8beeaf8334c15e9f | ||
with: | ||
components: rustfmt | ||
channel: nightly | ||
- run: cargo +nightly fmt -- --check | ||
|
||
cranky: | ||
name: cargo +nightly cranky --all-targets -- -D warnings | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
- uses: moonrepo/setup-rust@b8edcc56aab474d90c7cf0bb8beeaf8334c15e9f | ||
with: | ||
components: clippy | ||
bins: [email protected] | ||
channel: nightly | ||
- run: sudo apt-get install libpam0g-dev | ||
- run: cargo +nightly cranky --all-targets -- -D warnings | ||
|
||
deny: | ||
name: cargo deny --all-features check licenses | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
- uses: moonrepo/setup-rust@b8edcc56aab474d90c7cf0bb8beeaf8334c15e9f | ||
with: | ||
channel: '1.74.0' | ||
bins: cargo-deny | ||
- run: sudo apt-get install libpam0g-dev | ||
- run: cargo deny --all-features check licenses |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[graph] | ||
all-features = true | ||
|
||
[advisories] | ||
version = 2 | ||
db-path = "~/.cargo/advisory-db" | ||
db-urls = ["https://github.com/rustsec/advisory-db"] | ||
yanked = "deny" | ||
ignore = [ | ||
] | ||
|
||
[licenses] | ||
allow = [ | ||
"Apache-2.0", | ||
"MIT", | ||
"Unicode-DFS-2016", | ||
] | ||
confidence-threshold = 1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use ::descriptor::DescriptorError; | ||
use descriptor::DescriptorError; | ||
use std::error::Error; | ||
use std::fmt; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use ::descriptor::DescriptorError; | ||
use descriptor::DescriptorError; | ||
use std::error::Error; | ||
use std::fmt; | ||
|
||
|
Oops, something went wrong.