mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-28 00:00:11 +02:00
ci: use cargo deny (#6931)
This commit is contained in:
@@ -13,18 +13,12 @@ permissions:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
security-audit:
|
cargo-deny:
|
||||||
permissions:
|
permissions:
|
||||||
checks: write # for rustsec/audit-check to create check
|
checks: write
|
||||||
contents: read # for actions/checkout to fetch code
|
contents: read
|
||||||
issues: write # for rustsec/audit-check to create issues
|
issues: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: "!contains(github.event.head_commit.message, 'ci skip')"
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- uses: EmbarkStudios/cargo-deny-action@v2
|
||||||
- name: Audit Check
|
|
||||||
# https://github.com/rustsec/audit-check/issues/2
|
|
||||||
uses: rustsec/audit-check@master
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|||||||
@@ -16,17 +16,8 @@ permissions:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
security-audit:
|
cargo-deny:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: "!contains(github.event.head_commit.message, 'ci skip')"
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- uses: EmbarkStudios/cargo-deny-action@v2
|
||||||
- name: Install cargo-audit
|
|
||||||
run: cargo install cargo-audit
|
|
||||||
|
|
||||||
- name: Generate lockfile
|
|
||||||
run: cargo generate-lockfile
|
|
||||||
|
|
||||||
- name: Audit dependencies
|
|
||||||
run: cargo audit
|
|
||||||
|
|||||||
+2
-1
@@ -3,6 +3,7 @@ name = "benches"
|
|||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
publish = false
|
publish = false
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
license = "MIT"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
test-util = ["tokio/test-util"]
|
test-util = ["tokio/test-util"]
|
||||||
@@ -15,7 +16,7 @@ rand_chacha = "0.3"
|
|||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tokio-util = { version = "0.7.0", path = "../tokio-util", features = ["full"] }
|
tokio-util = { version = "0.7.0", path = "../tokio-util", features = ["full"] }
|
||||||
tokio-stream = { path = "../tokio-stream" }
|
tokio-stream = { version = "0.1", path = "../tokio-stream" }
|
||||||
|
|
||||||
[target.'cfg(unix)'.dependencies]
|
[target.'cfg(unix)'.dependencies]
|
||||||
libc = "0.2.42"
|
libc = "0.2.42"
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
# https://embarkstudios.github.io/cargo-deny/cli/init.html
|
||||||
|
|
||||||
|
[graph]
|
||||||
|
all-features = true
|
||||||
|
|
||||||
|
[licenses]
|
||||||
|
allow = [
|
||||||
|
"MIT",
|
||||||
|
"Apache-2.0",
|
||||||
|
]
|
||||||
|
exceptions = [
|
||||||
|
{ allow = ["Unicode-DFS-2016"], crate = "unicode-ident" },
|
||||||
|
]
|
||||||
|
|
||||||
|
[bans]
|
||||||
|
multiple-versions = "allow"
|
||||||
|
wildcards = "deny"
|
||||||
|
|
||||||
|
[sources]
|
||||||
|
unknown-registry = "deny"
|
||||||
|
unknown-git = "deny"
|
||||||
@@ -3,6 +3,7 @@ name = "examples"
|
|||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
publish = false
|
publish = false
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
license = "MIT"
|
||||||
|
|
||||||
# If you copy one of the examples into a new project, you should be using
|
# If you copy one of the examples into a new project, you should be using
|
||||||
# [dependencies] instead, and delete the **path**.
|
# [dependencies] instead, and delete the **path**.
|
||||||
|
|||||||
@@ -3,12 +3,13 @@ name = "stress-test"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Tokio Contributors <[email protected]>"]
|
authors = ["Tokio Contributors <[email protected]>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
license = "MIT"
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tokio = { path = "../tokio/", features = ["full"] }
|
tokio = { version = "1.0.0", path = "../tokio/", features = ["full"] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
rand = "0.8"
|
rand = "0.8"
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ name = "tests-build"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Tokio Contributors <[email protected]>"]
|
authors = ["Tokio Contributors <[email protected]>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
license = "MIT"
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
@@ -10,7 +11,7 @@ full = ["tokio/full"]
|
|||||||
rt = ["tokio/rt", "tokio/macros"]
|
rt = ["tokio/rt", "tokio/macros"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tokio = { path = "../tokio", optional = true }
|
tokio = { version = "1.0.0", path = "../tokio", optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
trybuild = "1.0"
|
trybuild = "1.0"
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ name = "tests-integration"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Tokio Contributors <[email protected]>"]
|
authors = ["Tokio Contributors <[email protected]>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
license = "MIT"
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
@@ -55,8 +56,8 @@ rt = ["tokio/rt"]
|
|||||||
rt-multi-thread = ["rt", "tokio/rt-multi-thread"]
|
rt-multi-thread = ["rt", "tokio/rt-multi-thread"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tokio = { path = "../tokio" }
|
tokio = { version = "1.0.0", path = "../tokio" }
|
||||||
tokio-test = { path = "../tokio-test", optional = true }
|
tokio-test = { version = "0.4", path = "../tokio-test", optional = true }
|
||||||
doc-comment = "0.3.1"
|
doc-comment = "0.3.1"
|
||||||
futures = { version = "0.3.0", features = ["async-await"] }
|
futures = { version = "0.3.0", features = ["async-await"] }
|
||||||
bytes = "1.0.0"
|
bytes = "1.0.0"
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ tokio-util = { version = "0.7.0", path = "../tokio-util", optional = true }
|
|||||||
tokio = { version = "1.2.0", path = "../tokio", features = ["full", "test-util"] }
|
tokio = { version = "1.2.0", path = "../tokio", features = ["full", "test-util"] }
|
||||||
async-stream = "0.3"
|
async-stream = "0.3"
|
||||||
parking_lot = "0.12.0"
|
parking_lot = "0.12.0"
|
||||||
tokio-test = { path = "../tokio-test" }
|
tokio-test = { version = "0.4", path = "../tokio-test" }
|
||||||
futures = { version = "0.3", default-features = false }
|
futures = { version = "0.3", default-features = false }
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
|
|||||||
Reference in New Issue
Block a user