Skip to content

Commit e5146fa

Browse files
committed
Pin dependencies when using MSRV
A recent release of `form_urlencoded` breaks our dev build when using 1.41.1 toolchain. Pin the `url` and `form_urlencoded` dependencies when on 1.41.1 toolchain.
1 parent 15b57cd commit e5146fa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

contrib/test.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ cargo update -p serde_derive --precise 1.0.142
1010
cargo --version
1111
rustc --version
1212

13+
# Work out if we are using a nightly toolchain.
14+
MSRV=false
15+
if cargo --version | grep "1\.41\.0"; then
16+
MSRV=true
17+
fi
18+
19+
# form_urlencoded 1.1.0 breaks MSRV.
20+
if [ "$MSRV" = true ]; then
21+
cargo update -p url --precise 2.2.2
22+
cargo update -p form_urlencoded --precise 1.0.1
23+
fi
24+
1325
# Format if told to
1426
if [ "$DO_FMT" = true ]
1527
then

0 commit comments

Comments
 (0)