Merge branch 'fix/found-argument-alloc' into develop

This commit is contained in:
Isis Lovecruft 2019-10-04 02:13:27 +00:00
commit 91426a2306
No known key found for this signature in database
GPG key ID: AB41313533E8E812
3 changed files with 10 additions and 8 deletions

View file

@ -6,26 +6,26 @@ rust:
- nightly - nightly
env: env:
- TEST_COMMAND=test FEATURES='' - TEST_COMMAND=test EXTRA_FLAGS='' FEATURES=''
matrix: matrix:
include: include:
# We use the 64-bit optimised curve backend by default, so also test with # 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`): # the 32-bit backend (this also exercises testing with `no_std`):
- rust: nightly - rust: nightly
env: TEST_COMMAND=build FEATURES='--no-default-features --features=u32_backend' env: TEST_COMMAND=build EXTRA_FLAGS='--no-default-features' FEATURES='u32_backend alloc'
# Also test the `alloc` feature with `no_std`: # Also test the batch feature:
- rust: nightly - 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: # Test any nightly gated features on nightly:
- rust: 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: # Test serde support on stable, assuming that if it works there it'll work everywhere:
- rust: stable - rust: stable
env: TEST_COMMAND=test FEATURE='--features=serde' env: TEST_COMMAND=test EXTRA_FLAGS='' FEATURES='serde'
script: script:
- cargo $TEST_COMMAND $FEATURES - cargo $TEST_COMMAND --features="$FEATURES" $EXTRA_FLAGS
notifications: notifications:
slack: slack:

View file

@ -93,7 +93,7 @@ pub fn verify_batch(
public_keys: &[PublicKey], public_keys: &[PublicKey],
) -> Result<(), SignatureError> ) -> 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() == messages.len(), ASSERT_MESSAGE);
assert!(signatures.len() == public_keys.len(), ASSERT_MESSAGE); assert!(signatures.len() == public_keys.len(), ASSERT_MESSAGE);
assert!(public_keys.len() == messages.len(), ASSERT_MESSAGE); assert!(public_keys.len() == messages.len(), ASSERT_MESSAGE);

View file

@ -255,6 +255,8 @@
#[macro_use] #[macro_use]
extern crate std; extern crate std;
#[cfg(all(feature = "alloc", not(feature = "std")))]
extern crate alloc;
extern crate clear_on_drop; extern crate clear_on_drop;
extern crate curve25519_dalek; extern crate curve25519_dalek;
extern crate failure; extern crate failure;