Merge pull request #191 from elichai/2020-01-fuzztarget

Fix fuzztarget symbols
This commit is contained in:
Andrew Poelstra 2020-01-09 15:29:19 +00:00 committed by GitHub
commit 5c82bb4335
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 3 deletions

View File

@ -27,8 +27,8 @@ script:
- cargo build --verbose --no-default-features --features="rand" - cargo build --verbose --no-default-features --features="rand"
- cargo build --verbose --no-default-features --features="rand serde recovery endomorphism" - cargo build --verbose --no-default-features --features="rand serde recovery endomorphism"
- cargo build --verbose --no-default-features --features="fuzztarget recovery" - cargo build --verbose --no-default-features --features="fuzztarget recovery"
- cargo build --verbose --features=fuzztarget
- cargo build --verbose --features=rand - cargo build --verbose --features=rand
- cargo test --no-run --features=fuzztarget
- cargo test --verbose --features=rand - cargo test --verbose --features=rand
- cargo test --verbose --features="rand rand-std" - cargo test --verbose --features="rand rand-std"
- cargo test --verbose --features="rand serde" - cargo test --verbose --features="rand serde"

View File

@ -1,4 +1,7 @@
# 0.17.2
- Fix linking in the `fuzztarget` feature.
# 0.17.1 # 0.17.1
- Correctly prefix the secp256k1-sys links field in Cargo.toml. - Correctly prefix the secp256k1-sys links field in Cargo.toml.

View File

@ -1,7 +1,7 @@
[package] [package]
name = "secp256k1" name = "secp256k1"
version = "0.17.1" version = "0.17.2"
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>", authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>",
"Andrew Poelstra <apoelstra@wpsoftware.net>" ] "Andrew Poelstra <apoelstra@wpsoftware.net>" ]
license = "CC0-1.0" license = "CC0-1.0"

View File

@ -444,10 +444,14 @@ mod fuzz_dummy {
SECP256K1_START_NONE, SECP256K1_START_VERIFY, SECP256K1_START_SIGN, SECP256K1_START_NONE, SECP256K1_START_VERIFY, SECP256K1_START_SIGN,
SECP256K1_SER_COMPRESSED, SECP256K1_SER_UNCOMPRESSED}; SECP256K1_SER_COMPRESSED, SECP256K1_SER_UNCOMPRESSED};
#[allow(non_upper_case_globals)]
pub static secp256k1_context_no_precomp: &Context = &Context(0);
extern "C" { extern "C" {
#[cfg_attr(not(feature = "external-symbols"), link_name = "rustsecp256k1_v0_1_1_ecdh_hash_function_default")]
pub static secp256k1_ecdh_hash_function_default: EcdhHashFn; pub static secp256k1_ecdh_hash_function_default: EcdhHashFn;
#[cfg_attr(not(feature = "external-symbols"), link_name = "rustsecp256k1_v0_1_1_nonce_function_rfc6979")]
pub static secp256k1_nonce_function_rfc6979: NonceFn; pub static secp256k1_nonce_function_rfc6979: NonceFn;
pub static secp256k1_context_no_precomp: *const Context;
} }
// Contexts // Contexts