Merge pull request #204 from ordian/master

secp256k1-sys: remove restriction on cc version
This commit is contained in:
Andrew Poelstra 2020-05-13 18:56:23 +00:00 committed by GitHub
commit e6a82fa089
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 1 deletions

View File

@ -26,6 +26,9 @@ matrix:
os: windows
script:
- if [ "$TRAVIS_RUST_VERSION" == "1.22.0" ]; then
cargo generate-lockfile --verbose && cargo update -p cc --precise "1.0.41" --verbose;
fi
- cargo build --verbose --no-default-features
- cargo build --verbose --no-default-features --features="serde"
- cargo build --verbose --no-default-features --features="lowmemory"

View File

@ -21,3 +21,17 @@ Contributions to this library are welcome. A few guidelines:
* No new dependencies, please.
* No crypto should be implemented in Rust, with the possible exception of hash functions. Cryptographic contributions should be directed upstream to libsecp256k1.
* This library should always compile with any combination of features on **Rust 1.22**.
## A note on Rust 1.22 support
The build dependency `cc` might require a more recent version of the Rust compiler.
To ensure compilation with Rust 1.22.0, pin its version in your `Cargo.lock`
with `cargo update -p cc --precise 1.0.41`. If you're using `secp256k1` in a library,
to make sure it compiles in CI, you'll need to generate a lockfile first.
Example for Travis CI:
```yml
before_script:
- if [ "$TRAVIS_RUST_VERSION" == "1.22.0" ]; then
cargo generate-lockfile --verbose && cargo update -p cc --precise "1.0.41" --verbose;
fi
```

View File

@ -19,7 +19,7 @@ links = "rustsecp256k1_v0_1_1"
features = [ "recovery", "endomorphism", "lowmemory" ]
[build-dependencies]
cc = ">= 1.0.28, <= 1.0.41"
cc = "1.0.28"
[lib]
name = "secp256k1_sys"