File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ categories = ["cryptography"]
1111readme = " README.md"
1212keywords = [" noise" , " protocol" , " crypto" ]
1313edition = " 2021"
14- rust-version = " 1.81"
14+ rust-version = " 1.81.0 "
1515
1616# This is slightly mumbo-jumboey, but in short:
1717# Features with a -resolver suffix simply enables the existence of a specific resolver,
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -e
33TARGET=" $( [ -n " $1 " ] && echo " --target $1 " || echo " " ) "
4+ MSRV=" $( cargo metadata --no-deps | jq -r .packages[0].rust_version) "
5+ RUSTC_VERSION=" $( rustc --version | cut -w -f2) "
46
57COMMON_FEATURES=" use-p256 use-xchacha20poly1305 vector-tests"
68if ! rustc -vV | grep ' host: .*windows' & > /dev/null; then
911
1012set -x
1113cargo check --benches --tests --examples
12- cargo clippy --features " $COMMON_FEATURES " --tests --benches --examples -- -Dwarnings
14+ if [[ " $CI " != " true" || " $RUSTC_VERSION " == " $MSRV " ]]; then
15+ cargo clippy --features " $COMMON_FEATURES " --tests --benches --examples -- -Dwarnings
16+ else
17+ echo " skipping cargo clippy on non-MSRV CI run. MSRV: $MSRV , rustc: $RUSTC_VERSION "
18+ fi
1319cargo test $TARGET --no-default-features
1420# Custom set of crypto without std
1521cargo test $TARGET --no-default-features --features " default-resolver use-curve25519 use-blake2 use-chacha20poly1305"
You can’t perform that action at this time.
0 commit comments