mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-07 20:50:39 +00:00
Merge remote-tracking branch 'isislovecruft/develop' into develop
This commit is contained in:
commit
ba9d3be011
2 changed files with 11 additions and 5 deletions
|
|
@ -90,6 +90,9 @@ use subtle::CTAssignable;
|
||||||
use subtle::CTEq;
|
use subtle::CTEq;
|
||||||
use subtle::CTNegatable;
|
use subtle::CTNegatable;
|
||||||
|
|
||||||
|
#[cfg(not(feature = "std"))]
|
||||||
|
use collections::boxed::Box;
|
||||||
|
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
// Compressed points
|
// Compressed points
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
|
|
|
||||||
13
src/lib.rs
13
src/lib.rs
|
|
@ -9,7 +9,8 @@
|
||||||
// - Isis Agora Lovecruft <isis@patternsinthevoid.net>
|
// - Isis Agora Lovecruft <isis@patternsinthevoid.net>
|
||||||
// - Henry de Valence <hdevalence@hdevalence.ca>
|
// - Henry de Valence <hdevalence@hdevalence.ca>
|
||||||
|
|
||||||
#![no_std]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
|
#![cfg_attr(not(feature = "std"), feature(collections))]
|
||||||
#![allow(unused_features)]
|
#![allow(unused_features)]
|
||||||
#![feature(test)]
|
#![feature(test)]
|
||||||
#![deny(missing_docs)] // refuse to compile if documentation is missing
|
#![deny(missing_docs)] // refuse to compile if documentation is missing
|
||||||
|
|
@ -32,10 +33,6 @@
|
||||||
//! hatred of the Daleks. Rusty destroys the other Daleks and departs the
|
//! hatred of the Daleks. Rusty destroys the other Daleks and departs the
|
||||||
//! ship, determined to track down and bring an end to the Dalek race.
|
//! ship, determined to track down and bring an end to the Dalek race.
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
#[macro_use]
|
|
||||||
extern crate std;
|
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
extern crate test;
|
extern crate test;
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|
@ -47,9 +44,15 @@ extern crate arrayref;
|
||||||
extern crate generic_array;
|
extern crate generic_array;
|
||||||
extern crate digest;
|
extern crate digest;
|
||||||
|
|
||||||
|
#[cfg(feature = "std")]
|
||||||
|
extern crate core;
|
||||||
|
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
extern crate rand;
|
extern crate rand;
|
||||||
|
|
||||||
|
#[cfg(not(feature = "std"))]
|
||||||
|
extern crate collections;
|
||||||
|
|
||||||
// Modules for low-level operations directly on field elements and curve points.
|
// Modules for low-level operations directly on field elements and curve points.
|
||||||
|
|
||||||
pub mod field;
|
pub mod field;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue