diff --git a/README.md b/README.md index b7791921..e849c156 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/contrib/test.sh b/contrib/test.sh index de1cb3ec..4eb69239 100755 --- a/contrib/test.sh +++ b/contrib/test.sh @@ -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