mirror of
https://github.com/saymrwulf/risc0-curve25519-dalek-source.git
synced 2026-09-05 20:10:35 +00:00
Merge branch 'fix/found-argument-alloc' into develop
This commit is contained in:
commit
91426a2306
3 changed files with 10 additions and 8 deletions
14
.travis.yml
14
.travis.yml
|
|
@ -6,26 +6,26 @@ rust:
|
|||
- nightly
|
||||
|
||||
env:
|
||||
- TEST_COMMAND=test FEATURES=''
|
||||
- TEST_COMMAND=test EXTRA_FLAGS='' FEATURES=''
|
||||
|
||||
matrix:
|
||||
include:
|
||||
# We use the 64-bit optimised curve backend by default, so also test with
|
||||
# the 32-bit backend (this also exercises testing with `no_std`):
|
||||
- rust: nightly
|
||||
env: TEST_COMMAND=build FEATURES='--no-default-features --features=u32_backend'
|
||||
# Also test the `alloc` feature with `no_std`:
|
||||
env: TEST_COMMAND=build EXTRA_FLAGS='--no-default-features' FEATURES='u32_backend alloc'
|
||||
# Also test the batch feature:
|
||||
- rust: nightly
|
||||
env: TEST_COMMAND=build FEATURES='--no-default-features --features="u64_backend alloc"'
|
||||
env: TEST_COMMAND=build EXTRA_FLAGS='--no-default-features' FEATURES='u64_backend alloc batch'
|
||||
# Test any nightly gated features on nightly:
|
||||
- rust: nightly
|
||||
env: TEST_COMMAND=test FEATURES='--features=nightly'
|
||||
env: TEST_COMMAND=test EXTRA_FLAGS='' FEATURES='nightly'
|
||||
# Test serde support on stable, assuming that if it works there it'll work everywhere:
|
||||
- rust: stable
|
||||
env: TEST_COMMAND=test FEATURE='--features=serde'
|
||||
env: TEST_COMMAND=test EXTRA_FLAGS='' FEATURES='serde'
|
||||
|
||||
script:
|
||||
- cargo $TEST_COMMAND $FEATURES
|
||||
- cargo $TEST_COMMAND --features="$FEATURES" $EXTRA_FLAGS
|
||||
|
||||
notifications:
|
||||
slack:
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ pub fn verify_batch(
|
|||
public_keys: &[PublicKey],
|
||||
) -> Result<(), SignatureError>
|
||||
{
|
||||
const ASSERT_MESSAGE: &'static [u8] = b"The number of messages, signatures, and public keys must be equal.";
|
||||
const ASSERT_MESSAGE: &'static str = "The number of messages, signatures, and public keys must be equal.";
|
||||
assert!(signatures.len() == messages.len(), ASSERT_MESSAGE);
|
||||
assert!(signatures.len() == public_keys.len(), ASSERT_MESSAGE);
|
||||
assert!(public_keys.len() == messages.len(), ASSERT_MESSAGE);
|
||||
|
|
|
|||
|
|
@ -255,6 +255,8 @@
|
|||
#[macro_use]
|
||||
extern crate std;
|
||||
|
||||
#[cfg(all(feature = "alloc", not(feature = "std")))]
|
||||
extern crate alloc;
|
||||
extern crate clear_on_drop;
|
||||
extern crate curve25519_dalek;
|
||||
extern crate failure;
|
||||
|
|
|
|||
Loading…
Reference in a new issue