We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75034d6 commit 2fdca02Copy full SHA for 2fdca02
scripts/pre-commit.sh
@@ -3,7 +3,21 @@
3
export RUSTFLAGS="-Dwarnings"
4
export RUSTDOCFLAGS="--cfg docsrs -Dwarnings"
5
6
+LOCALDEPS=("https://github.com/angrynode/hightorrent")
7
+
8
set -e
9
+set -x
10
11
+if [[ "$1" = "tag" ]]; then
12
+ # When testing for a tag, we only want to use released versions on crates.io
13
+ cp Cargo.toml Cargo.toml.bak
14
+ sed -ri 's/, ?path ?= ?".*"//' Cargo.toml
15
+else
16
+ # If testing in CI, we want to download the latest main branch of LOCALDEPS
17
+ for dep in ${LOCALDEPS[@]}; do
18
+ git clone --depth=1 "$dep" ..
19
+ done
20
+fi
21
22
cargo +nightly --version
23
cargo +nightly fmt --check
0 commit comments