Commit graph

22 commits

Author SHA1 Message Date
François Garillot
d1ed427af5
add fiat backends to Travis tests 2021-01-21 08:58:21 -05:00
Isis Lovecruft
7e320cd1d9
Remove deprecated feature flags from .travis.yml. 2021-01-07 21:51:21 +00:00
Tony Arcieri
10e8abf926 Unify alloc and std cargo features
This change provides a common convention for using allocator-dependent
features with:

    #![cfg(feature = "alloc")]

When available, `Vec` is imported consistently as `prelude::Vec`, which
means modules that need access to `Vec` can simply do:

    use prelude::*;

and if an allocator is available, `Vec` will be in the crate prelude.

This allows all `alloc` vs `std` gating to be handled in `lib.rs`,
`build.rs`, and `prelude.rs` so the rest of the codebase doesn't have to
do any gating whatsoever.
2018-07-23 10:50:21 -07:00
Henry de Valence
16f39c82e5 Remove yolocrypto from avx2_backend 2018-06-18 13:32:04 -07:00
Isis Lovecruft
83280ca181
Fix travis no_std builds after merging #143. 2018-05-15 02:56:29 +00:00
Henry de Valence
34c43c20a9 Rework backend selection code.
Each backend can now be selected by an individual feature:

- `u32_backend` for `backend::u32`;
- `u64_backend` for `backend::u64`;
- `avx2_backend` for `backend::avx2`;

The `u64_backend` is selected by default, since most people use X64 and we have
no way to select based on target (see discussion in #126).  However, these
changes mean that it is possible to select the backend explicitly, and if we
had the ability to select target-default features, we could do so easily.
2018-05-14 17:43:54 -07:00
Henry de Valence
f830268128 Drop benchmarks from Travis 2018-04-04 10:00:18 -07:00
Henry de Valence
d6b8389428 Use criterion.rs instead of libtest for benchmarks.
Since Criterion can only benchmark public API, these changes just drop
all internal benchmarks (e.g., benchmarks for field operations). But
those are usually microbenchmarks whose meaning is kind of questionable
anyways, so I don't think this is a big loss.

The `bench` feature disappears, since Criterion works on stable Rust.
2018-03-25 17:14:37 -07:00
Isis Lovecruft
53908798a7
Remove Travis notifications from #curve25519-dalek channel. 2018-01-24 22:20:53 +00:00
Isis Lovecruft
0012e1f12f
Merge remote-tracking branch 'hdevalence/feature/avx2_r7' into develop 2018-01-19 23:46:30 +00:00
Isis Lovecruft
f5f071c359
Add slack notifications. 2018-01-18 00:37:37 +00:00
Henry de Valence
9ad2188bb8 Try to get travis working if yolocrypto=>nightly 2017-12-18 15:15:23 -08:00
Tony Arcieri
d9742c2367 Switch from libcollections to liballoc (gated on an "alloc" feature)
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
2017-06-19 16:59:45 -07:00
Henry de Valence
7afb6647b1 Revert to previous quoting scheme to fix broken Travis builds 2017-05-20 21:28:56 -07:00
Henry de Valence
69fd268aa4 Make serde an optional feature 2017-05-15 22:40:09 -07:00
Isis Lovecruft
fbb078f8c9
Add CI build for #![no_std]. 2017-05-14 22:54:25 +00:00
Henry de Valence
35db90c4f3 Benchmark both implementations 2017-03-13 22:29:39 -07:00
Henry de Valence
383750119b Benchmark with nightly features 2017-03-13 22:21:57 -07:00
Henry de Valence
5d03c2a3ba 2nd attempt at fixing Travis config
Test nightly features on nightly channel.
2017-03-13 22:15:03 -07:00
Henry de Valence
d0980b6c8a Test radix_51, but exclude bench and radix_51 from stable/beta builds. 2017-03-13 21:59:42 -07:00
Isis Lovecruft
bad1f259b9
We expect tests to pass on stable and beta, but benches to fail. 2017-03-14 02:20:02 +00:00
Isis Lovecruft
4f319873d0
Add a .travis.yml file. 2017-03-14 00:18:13 +00:00