update Travis and README for manual rustc 1.22.0 steps

This commit is contained in:
Andrew Poelstra 2020-09-10 17:55:47 +00:00
parent e2bef1c4a6
commit 1c46b32d2b
2 changed files with 13 additions and 0 deletions

View File

@ -53,6 +53,12 @@ freenode.
## Minimum Supported Rust Version (MSRV)
This library should always compile with any combination of features on **Rust 1.22**.
Because some dependencies have broken the build in minor/patch releases, to
compile with 1.22.0 you will need to run the following version-pinning command:
```
cargo update -p cc --precise "1.0.41" --verbose
```
## Installing Rust
Rust can be installed using your package manager of choice or
[rustup.rs](https://rustup.rs). The former way is considered more secure since

View File

@ -45,5 +45,12 @@ then
cargo new dep_test
cd dep_test
echo 'bitcoin = { path = "..", features = ["use-serde"] }' >> Cargo.toml
# Pin `cc` for Rust 1.22
if [ "$TRAVIS_RUST_VERSION" = "1.22.0" ]; then
cargo generate-lockfile --verbose
cargo update -p cc --precise "1.0.41" --verbose
fi
cargo test --verbose
fi