mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-06 20:41:14 +00:00
fixup: cleanup extern crates
This commit is contained in:
parent
fa9e16e938
commit
ce3b8d3689
3 changed files with 1 additions and 15 deletions
|
|
@ -11,13 +11,7 @@
|
||||||
|
|
||||||
//! Benchmark the Diffie-Hellman operation.
|
//! Benchmark the Diffie-Hellman operation.
|
||||||
|
|
||||||
#[macro_use]
|
use criterion::{criterion_group, criterion_main, Criterion};
|
||||||
extern crate criterion;
|
|
||||||
extern crate curve25519_dalek;
|
|
||||||
extern crate rand_core;
|
|
||||||
extern crate x25519_dalek;
|
|
||||||
|
|
||||||
use criterion::Criterion;
|
|
||||||
|
|
||||||
use rand_core::OsRng;
|
use rand_core::OsRng;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -155,12 +155,6 @@
|
||||||
//!
|
//!
|
||||||
//! [crypto_box]: https://github.com/RustCrypto/AEADs/tree/master/crypto_box
|
//! [crypto_box]: https://github.com/RustCrypto/AEADs/tree/master/crypto_box
|
||||||
|
|
||||||
extern crate curve25519_dalek;
|
|
||||||
|
|
||||||
extern crate rand_core;
|
|
||||||
|
|
||||||
extern crate zeroize;
|
|
||||||
|
|
||||||
mod x25519;
|
mod x25519;
|
||||||
|
|
||||||
pub use crate::x25519::*;
|
pub use crate::x25519::*;
|
||||||
|
|
|
||||||
|
|
@ -281,8 +281,6 @@ fn clamp_scalar(mut scalar: [u8; 32]) -> Scalar {
|
||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
/// ```
|
/// ```
|
||||||
/// # extern crate rand_core;
|
|
||||||
/// #
|
|
||||||
/// use rand_core::OsRng;
|
/// use rand_core::OsRng;
|
||||||
/// use rand_core::RngCore;
|
/// use rand_core::RngCore;
|
||||||
///
|
///
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue