mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +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.
|
||||
|
||||
#[macro_use]
|
||||
extern crate criterion;
|
||||
extern crate curve25519_dalek;
|
||||
extern crate rand_core;
|
||||
extern crate x25519_dalek;
|
||||
|
||||
use criterion::Criterion;
|
||||
use criterion::{criterion_group, criterion_main, Criterion};
|
||||
|
||||
use rand_core::OsRng;
|
||||
|
||||
|
|
|
|||
|
|
@ -155,12 +155,6 @@
|
|||
//!
|
||||
//! [crypto_box]: https://github.com/RustCrypto/AEADs/tree/master/crypto_box
|
||||
|
||||
extern crate curve25519_dalek;
|
||||
|
||||
extern crate rand_core;
|
||||
|
||||
extern crate zeroize;
|
||||
|
||||
mod x25519;
|
||||
|
||||
pub use crate::x25519::*;
|
||||
|
|
|
|||
|
|
@ -281,8 +281,6 @@ fn clamp_scalar(mut scalar: [u8; 32]) -> Scalar {
|
|||
///
|
||||
/// # Example
|
||||
/// ```
|
||||
/// # extern crate rand_core;
|
||||
/// #
|
||||
/// use rand_core::OsRng;
|
||||
/// use rand_core::RngCore;
|
||||
///
|
||||
|
|
|
|||
Loading…
Reference in a new issue