mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 00:03:29 +00:00
Add cargo-deny
to CI (#3185)
This commit is contained in:
parent
9c6a60d97c
commit
9bb2d28ce2
37
.deny.toml
Normal file
37
.deny.toml
Normal file
@ -0,0 +1,37 @@
|
||||
[bans]
|
||||
multiple-versions = "deny"
|
||||
skip-tree = [
|
||||
{ name = "cts_runner" },
|
||||
{ name = "dummy" },
|
||||
{ name = "player" },
|
||||
{ name = "run-wasm" },
|
||||
{ name = "wgpu-info" },
|
||||
]
|
||||
wildcards = "deny"
|
||||
|
||||
[licenses]
|
||||
allow = [
|
||||
"Apache-2.0",
|
||||
"Apache-2.0 WITH LLVM-exception",
|
||||
"BSD-2-Clause",
|
||||
"BSD-3-Clause",
|
||||
"CC0-1.0",
|
||||
"ISC",
|
||||
"MIT",
|
||||
"MPL-2.0",
|
||||
"Unicode-DFS-2016",
|
||||
"Zlib",
|
||||
]
|
||||
|
||||
[sources]
|
||||
allow-git = [
|
||||
"https://github.com/grovesNL/glow",
|
||||
]
|
||||
unknown-registry = "deny"
|
||||
unknown-git = "deny"
|
||||
required-git-spec = "rev"
|
||||
|
||||
[sources.allow-org]
|
||||
github = [
|
||||
"gfx-rs"
|
||||
]
|
28
.github/workflows/ci.yml
vendored
28
.github/workflows/ci.yml
vendored
@ -356,3 +356,31 @@ jobs:
|
||||
- name: build Deno
|
||||
run: |
|
||||
cargo clippy --manifest-path cts_runner/Cargo.toml
|
||||
|
||||
cargo-deny-check-advisories:
|
||||
name: "Run `cargo deny check advisories`"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Run `cargo deny check`
|
||||
uses: EmbarkStudios/cargo-deny-action@v1
|
||||
with:
|
||||
command: check advisories
|
||||
arguments: --all-features --workspace
|
||||
rust-version: ${{ env.RUST_VERSION }}
|
||||
|
||||
cargo-deny-check-rest:
|
||||
name: "Run `cargo deny check`"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Run `cargo deny check`
|
||||
uses: EmbarkStudios/cargo-deny-action@v1
|
||||
with:
|
||||
command: check bans licenses sources
|
||||
arguments: --all-features --workspace
|
||||
rust-version: ${{ env.RUST_VERSION }}
|
||||
|
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1003,7 +1003,7 @@ checksum = "518faa5064866338b013ff9b2350dc318e14cc4fcd6cb8206d7e7c9886c98815"
|
||||
[[package]]
|
||||
name = "glow"
|
||||
version = "0.11.2"
|
||||
source = "git+https://github.com/grovesNL/glow/?rev=c8a011fcd57a5c68cc917ed394baa484bdefc909#c8a011fcd57a5c68cc917ed394baa484bdefc909"
|
||||
source = "git+https://github.com/grovesNL/glow?rev=c8a011fcd57a5c68cc917ed394baa484bdefc909#c8a011fcd57a5c68cc917ed394baa484bdefc909"
|
||||
dependencies = [
|
||||
"js-sys",
|
||||
"slotmap",
|
||||
|
@ -103,7 +103,7 @@ winapi = "0.3"
|
||||
egl = { package = "khronos-egl", version = "4.1" }
|
||||
# glow = { version = "0.11.2", optional = true }
|
||||
# TODO: New glow release
|
||||
glow = { git = "https://github.com/grovesNL/glow/", rev = "c8a011fcd57a5c68cc917ed394baa484bdefc909" }
|
||||
glow = { git = "https://github.com/grovesNL/glow", rev = "c8a011fcd57a5c68cc917ed394baa484bdefc909" }
|
||||
glutin = "0.29.1"
|
||||
|
||||
# wasm32 dependencies
|
||||
|
@ -3,6 +3,7 @@ name = "run-wasm"
|
||||
version.workspace = true
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
@ -8,6 +8,7 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
keywords.workspace = true
|
||||
license.workspace = true
|
||||
publish = false
|
||||
|
||||
[dependencies]
|
||||
env_logger.workspace = true
|
||||
|
Loading…
Reference in New Issue
Block a user