dalek-cryptography / bulletproofs

A pure-Rust implementation of Bulletproofs using Ristretto.
MIT License
1.02k stars 218 forks source link

Support for stable Rust #317

Closed oleganza closed 4 years ago

oleganza commented 4 years ago

This adds support for using stable Rust by introducing a new cargo feature nightly. Since all the docs are using unstable external_doc compiler feature, the docs can only be build on a nightly Rust.

# basic features on stable:
cargo build

# with R1CS API on stable:
cargo build --features="yoloproofs"

# no_std (nightly only):
cargo build --no-default-features --features="nightly"

# vectorized backend (nightly only):
cargo build --no-default-features --features="avx2_backend"

# build documentation (nightly only)
make doc-internal

(This is a copy of PR #314 in an attempt to kick Travis)