Remove unneeded extern crate

This commit is contained in:
NikVolf 2019-10-08 16:06:02 +03:00
parent 39971891d5
commit 7844394364
8 changed files with 7 additions and 30 deletions

View File

@ -408,6 +408,7 @@ pub fn blake2s<E: ScalarEngine, CS: ConstraintSystem<E>>(
#[cfg(test)]
mod test {
use blake2s_simd::Params as Blake2sParams;
use hex_literal::hex;
use pairing::bls12_381::Bls12;
use rand_core::{RngCore, SeedableRng};
use rand_xorshift::XorShiftRng;

View File

@ -273,6 +273,7 @@ mod test {
use super::*;
use crate::gadgets::boolean::AllocatedBit;
use crate::gadgets::test::TestConstraintSystem;
use hex_literal::hex;
use pairing::bls12_381::Bls12;
use rand_core::{RngCore, SeedableRng};
use rand_xorshift::XorShiftRng;

View File

@ -135,19 +135,6 @@
// Catch documentation errors caused by code changes.
#![deny(intra_doc_link_resolution_failure)]
#[cfg(feature = "multicore")]
extern crate crossbeam;
#[cfg(feature = "multicore")]
extern crate num_cpus;
#[cfg(test)]
#[macro_use]
extern crate hex_literal;
#[cfg(test)]
extern crate rand;
pub mod domain;
pub mod gadgets;
#[cfg(feature = "groth16")]

View File

@ -2,17 +2,11 @@
extern crate proc_macro;
extern crate proc_macro2;
extern crate syn;
#[macro_use]
extern crate quote;
extern crate num_bigint;
extern crate num_integer;
extern crate num_traits;
use num_bigint::BigUint;
use num_integer::Integer;
use num_traits::{One, ToPrimitive, Zero};
use quote::quote;
use quote::TokenStreamExt;
use std::str::FromStr;

View File

@ -4,10 +4,6 @@
#![deny(intra_doc_link_resolution_failure)]
#![allow(unused_imports)]
#[cfg(feature = "derive")]
#[macro_use]
extern crate ff_derive;
#[cfg(feature = "derive")]
pub use ff_derive::*;

View File

@ -469,6 +469,8 @@ impl JubjubBls12 {
#[test]
fn test_jubjub_bls12() {
use hex_literal::hex;
let params = JubjubBls12::new();
tests::test_suite::<Bls12>(&params);

View File

@ -6,12 +6,7 @@
// Catch documentation errors caused by code changes.
#![deny(intra_doc_link_resolution_failure)]
#[macro_use]
extern crate lazy_static;
#[cfg(test)]
#[macro_use]
extern crate hex_literal;
use lazy_static::lazy_static;
pub mod block;
pub mod constants;

View File

@ -6,6 +6,7 @@ use crate::{
primitives::Note,
};
use ff::{BitIterator, PrimeField, PrimeFieldRepr};
use lazy_static::lazy_static;
use pairing::bls12_381::{Bls12, Fr, FrRepr};
use rand_core::{CryptoRng, RngCore};
use std::io::{self, Read, Write};