Skip to content

Commit 8fcbeb1

Browse files
committedSep 12, 2022
Merge #459: Pin dependencies when using MSRV
c6d89cd Pin dependencies when using MSRV (Tobin C. Harding) 15b57cd Remove TOOLCHAIN (Tobin C. Harding) Pull request description: A recent release of `form_urlencoded` breaks our test run when using 1.41.1 toolchain. Pin the `url` and `form_urlencoded` dependencies when on 1.41.1 toolchain. Add a section to the readme instructing devs how to pin relevant dependencies (only when running tests). ACKs for top commit: apoelstra: ACK c6d89cd Tree-SHA512: bff67d12b344c70f6f787e12b5640ea0bba6a8a460e6116f42c2049d7fc8e370157b37884ef0a9dc765e5cef852786cae50a53ef1785b6f45640d6a061d146ea
2 parents 75a3577 + c6d89cd commit 8fcbeb1

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed
 

‎README.md

+8
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ or in [the `examples/` directory](https://github.com/apoelstra/rust-miniscript/t
3838
This library should always compile with any combination of features (minus
3939
`no-std`) on **Rust 1.41.1** or **Rust 1.47** with `no-std`.
4040

41+
Some dependencies do not play nicely with our MSRV, if you are running the tests
42+
you may need to pin as follows:
43+
44+
```
45+
cargo update --package url --precise 2.2.2
46+
cargo update --package form_urlencoded --precise 1.0.1
47+
```
48+
4149
## Contributing
4250
Contributions are generally welcome. If you intend to make larger changes please
4351
discuss them in an issue before PRing them to avoid duplicate work and

‎contrib/test.sh

+12-6
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,24 @@ set -e
44

55
FEATURES="compiler serde rand"
66

7-
# Use toolchain if explicitly specified
8-
if [ -n "$TOOLCHAIN" ]
9-
then
10-
alias cargo="cargo +$TOOLCHAIN"
11-
fi
12-
137
cargo update -p serde --precise 1.0.142
148
cargo update -p serde_derive --precise 1.0.142
159

1610
cargo --version
1711
rustc --version
1812

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+
1925
# Format if told to
2026
if [ "$DO_FMT" = true ]
2127
then

0 commit comments

Comments
 (0)