Skip to content

Commit

Permalink
cargo deny fix build + add .mailmap (kube-rs#1138)
Browse files Browse the repository at this point in the history
* Add a .mailmap and fix deny issue

Signed-off-by: clux <[email protected]>

* remove deny bans no longer needed

Signed-off-by: clux <[email protected]>

* document reason for ban

Signed-off-by: clux <[email protected]>

---------

Signed-off-by: clux <[email protected]>
  • Loading branch information
clux authored Feb 10, 2023
1 parent fdd799d commit 43e6875
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 28 deletions.
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Eirik A <[email protected]> <[email protected]>
25 changes: 2 additions & 23 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,31 +83,10 @@ multiple-versions = "deny"
name = "idna"
version = "0.2"

# waiting on hyper-rustls and below to bump its chain
[[bans.skip]]
name = "windows_i686_msvc"
version = "0.36"
[[bans.skip]]
name = "windows_aarch64_msvc"
version = "0.36"
# tokio 1.25 pulls in mio which pulls in older an windows-sys than parking-lot
[[bans.skip]]
name = "windows-sys"
version = "0.36"
[[bans.skip]]
name = "windows_i686_gnu"
version = "0.36"
[[bans.skip]]
name = "windows_x86_64_msvc"
version = "0.36"
[[bans.skip]]
name = "windows_x86_64_gnu"
version = "0.36"

[[bans.skip]]
# waiting for ahash/getrandom to bump wasi as we have two branches:
# ahash -> getrandom -> wasi old
# tokio -> mio -> wasi new
name = "wasi"
version = "0.42"

[[bans.skip]]
# waiting for pem to bump base64
Expand Down
12 changes: 7 additions & 5 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
VERSION := `git rev-parse HEAD`

[private]
default:
@just --list --unsorted --color=always | rg -v " default"
@just --list --unsorted

clippy:
#rustup component add clippy --toolchain nightly
Expand All @@ -15,6 +16,10 @@ fmt:
doc:
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --lib --workspace --features=derive,ws,oauth,jsonpatch,client,derive,runtime,admission,k8s-openapi/v1_26 --open

deny:
# might require rm Cargo.lock first to match CI
cargo deny --workspace --all-features check bans licenses sources

# Unit tests
test:
cargo test --lib --all
Expand All @@ -24,6 +29,7 @@ test:
cargo test -p kube --lib --no-default-features --features=openssl-tls,ws,oauth
cargo test -p kube --lib --no-default-features

# Integration tests (will modify your current context's cluster)
test-integration:
kubectl delete pod -lapp=kube-rs-test
cargo test --lib --all -- --ignored # also run tests that fail on github actions
Expand All @@ -36,10 +42,6 @@ coverage:
cargo tarpaulin --out=Html --output-dir=.
#xdg-open tarpaulin-report.html

deny:
# might require rm Cargo.lock first to match CI
cargo deny --workspace --all-features check bans licenses sources

readme:
rustdoc README.md --test --edition=2021

Expand Down

0 comments on commit 43e6875

Please sign in to comment.