Skip to content

Commit ba01394

Browse files
committed
readme: add an example for travis
1 parent 37b9e2d commit ba01394

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,12 @@ Contributions to this library are welcome. A few guidelines:
2626

2727
The build dependency `cc` might require a more recent version of the Rust compiler.
2828
To ensure compilation with Rust 1.22.0, pin its version in your `Cargo.lock`
29-
with `cargo update -p cc --precise 1.0.41`.
29+
with `cargo update -p cc --precise 1.0.41`. If you're using `secp256k1` in a library,
30+
to make sure it compiles in CI, you'll need to generate a lockfile first.
31+
Example for Travis CI:
32+
```yml
33+
before_script:
34+
- if [ "$TRAVIS_RUST_VERSION" == "1.22.0" ]; then
35+
cargo generate-lockfile --verbose && cargo update -p cc --precise "1.0.41" --verbose;
36+
fi
37+
```

secp256k1-sys/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ $ ./vendor-libsecp.sh depend <version-code> <rev>
2626
- Where `<version-code>` is the secp256k1-sys version number underscored: `0_1_2`.
2727
- Where `<rev>` is the git revision of libsecp256k1 to checkout.
2828

29+
2930
## Linking to external symbols
3031

3132
For the more exotic use cases, this crate can be used with existing libsecp256k1

0 commit comments

Comments
 (0)