mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
libcollections was recently merged into liballoc: https://github.com/rust-lang/rust/pull/42648 I went ahead and also added an "alloc" feature which no_std users can use to opt into liballoc features (i.e. any code using Vec). This should have no effect on anything but no_std usage. It does make it possible for people without allocators to use curve25519-dalek if they want though. Might be nice for "bare metal" development. All that said, from what I can gather liballoc, while not "stable", should likely stick around for the forseeable future. Some backstory on the liballoc/libcollections merge here: https://github.com/rust-lang/rust/pull/42565
44 lines
1.8 KiB
YAML
44 lines
1.8 KiB
YAML
language: rust
|
|
|
|
rust:
|
|
- stable
|
|
- beta
|
|
- nightly
|
|
|
|
env:
|
|
- TEST_COMMAND=test EXTRA_FLAGS='' FEATURES='yolocrypto'
|
|
- TEST_COMMAND=test EXTRA_FLAGS='' FEATURES='yolocrypto serde'
|
|
- TEST_COMMAND=test EXTRA_FLAGS='' FEATURES='yolocrypto nightly'
|
|
- TEST_COMMAND=bench EXTRA_FLAGS='' FEATURES='yolocrypto bench'
|
|
- TEST_COMMAND=bench EXTRA_FLAGS='' FEATURES='yolocrypto nightly bench'
|
|
- TEST_COMMAND=build EXTRA_FLAGS=--no-default-features FEATURES=''
|
|
|
|
matrix:
|
|
exclude:
|
|
# We can probably remove this, as we reasonably expect dalek to work on
|
|
# stable and beta, but currently we require "test" feature in order to
|
|
# run benchmarks, which causes dalek not to build on stable. See
|
|
# https://github.com/isislovecruft/curve25519-dalek/pull/38#issuecomment-286027562
|
|
- rust: stable
|
|
env: TEST_COMMAND=bench EXTRA_FLAGS='' FEATURES='yolocrypto bench'
|
|
- rust: beta
|
|
env: TEST_COMMAND=bench EXTRA_FLAGS='' FEATURES='yolocrypto bench'
|
|
- rust: stable
|
|
env: TEST_COMMAND=bench EXTRA_FLAGS='' FEATURES='yolocrypto nightly bench'
|
|
- rust: beta
|
|
env: TEST_COMMAND=bench EXTRA_FLAGS='' FEATURES='yolocrypto nightly bench'
|
|
# Test nightly features, such as radix_51, only on nightly.
|
|
- rust: stable
|
|
env: TEST_COMMAND=test EXTRA_FLAGS='' FEATURES='yolocrypto nightly'
|
|
- rust: beta
|
|
env: TEST_COMMAND=test EXTRA_FLAGS='' FEATURES='yolocrypto nightly'
|
|
# Test no_std only on nightly.
|
|
- rust: stable
|
|
env: TEST_COMMAND=build EXTRA_FLAGS=--no-default-features FEATURES=''
|
|
- rust: beta
|
|
env: TEST_COMMAND=build EXTRA_FLAGS=--no-default-features FEATURES=''
|
|
- rust: nightly
|
|
env: TEST_COMMAND=build EXTRA_FLAGS=--no-default-features FEATURES='alloc'
|
|
|
|
script:
|
|
- cargo $TEST_COMMAND --features="$FEATURES" $EXTRA_FLAGS
|