Skip to content

Commit 43e6875

Browse files
authored
cargo deny fix build + add .mailmap (kube-rs#1138)
* 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]>
1 parent fdd799d commit 43e6875

File tree

3 files changed

+10
-28
lines changed

3 files changed

+10
-28
lines changed

.mailmap

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

deny.toml

+2-23
Original file line numberDiff line numberDiff line change
@@ -83,31 +83,10 @@ multiple-versions = "deny"
8383
name = "idna"
8484
version = "0.2"
8585

86-
# waiting on hyper-rustls and below to bump its chain
87-
[[bans.skip]]
88-
name = "windows_i686_msvc"
89-
version = "0.36"
90-
[[bans.skip]]
91-
name = "windows_aarch64_msvc"
92-
version = "0.36"
86+
# tokio 1.25 pulls in mio which pulls in older an windows-sys than parking-lot
9387
[[bans.skip]]
9488
name = "windows-sys"
95-
version = "0.36"
96-
[[bans.skip]]
97-
name = "windows_i686_gnu"
98-
version = "0.36"
99-
[[bans.skip]]
100-
name = "windows_x86_64_msvc"
101-
version = "0.36"
102-
[[bans.skip]]
103-
name = "windows_x86_64_gnu"
104-
version = "0.36"
105-
106-
[[bans.skip]]
107-
# waiting for ahash/getrandom to bump wasi as we have two branches:
108-
# ahash -> getrandom -> wasi old
109-
# tokio -> mio -> wasi new
110-
name = "wasi"
89+
version = "0.42"
11190

11291
[[bans.skip]]
11392
# waiting for pem to bump base64

justfile

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
VERSION := `git rev-parse HEAD`
22

3+
[private]
34
default:
4-
@just --list --unsorted --color=always | rg -v " default"
5+
@just --list --unsorted
56

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

19+
deny:
20+
# might require rm Cargo.lock first to match CI
21+
cargo deny --workspace --all-features check bans licenses sources
22+
1823
# Unit tests
1924
test:
2025
cargo test --lib --all
@@ -24,6 +29,7 @@ test:
2429
cargo test -p kube --lib --no-default-features --features=openssl-tls,ws,oauth
2530
cargo test -p kube --lib --no-default-features
2631

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

39-
deny:
40-
# might require rm Cargo.lock first to match CI
41-
cargo deny --workspace --all-features check bans licenses sources
42-
4345
readme:
4446
rustdoc README.md --test --edition=2021
4547

0 commit comments

Comments
 (0)