mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-02-01 08:12:14 +00:00
Merge pull request #135 from NikVolf/extern-purge
Remove unneeded "extern crate"
This commit is contained in:
commit
40d22ea2cc
@ -408,6 +408,7 @@ pub fn blake2s<E: ScalarEngine, CS: ConstraintSystem<E>>(
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod test {
|
||||||
use blake2s_simd::Params as Blake2sParams;
|
use blake2s_simd::Params as Blake2sParams;
|
||||||
|
use hex_literal::hex;
|
||||||
use pairing::bls12_381::Bls12;
|
use pairing::bls12_381::Bls12;
|
||||||
use rand_core::{RngCore, SeedableRng};
|
use rand_core::{RngCore, SeedableRng};
|
||||||
use rand_xorshift::XorShiftRng;
|
use rand_xorshift::XorShiftRng;
|
||||||
|
@ -273,6 +273,7 @@ mod test {
|
|||||||
use super::*;
|
use super::*;
|
||||||
use crate::gadgets::boolean::AllocatedBit;
|
use crate::gadgets::boolean::AllocatedBit;
|
||||||
use crate::gadgets::test::TestConstraintSystem;
|
use crate::gadgets::test::TestConstraintSystem;
|
||||||
|
use hex_literal::hex;
|
||||||
use pairing::bls12_381::Bls12;
|
use pairing::bls12_381::Bls12;
|
||||||
use rand_core::{RngCore, SeedableRng};
|
use rand_core::{RngCore, SeedableRng};
|
||||||
use rand_xorshift::XorShiftRng;
|
use rand_xorshift::XorShiftRng;
|
||||||
|
@ -135,19 +135,6 @@
|
|||||||
// Catch documentation errors caused by code changes.
|
// Catch documentation errors caused by code changes.
|
||||||
#![deny(intra_doc_link_resolution_failure)]
|
#![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 domain;
|
||||||
pub mod gadgets;
|
pub mod gadgets;
|
||||||
#[cfg(feature = "groth16")]
|
#[cfg(feature = "groth16")]
|
||||||
|
@ -2,17 +2,11 @@
|
|||||||
|
|
||||||
extern crate proc_macro;
|
extern crate proc_macro;
|
||||||
extern crate proc_macro2;
|
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_bigint::BigUint;
|
||||||
use num_integer::Integer;
|
use num_integer::Integer;
|
||||||
use num_traits::{One, ToPrimitive, Zero};
|
use num_traits::{One, ToPrimitive, Zero};
|
||||||
|
use quote::quote;
|
||||||
use quote::TokenStreamExt;
|
use quote::TokenStreamExt;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
|
@ -4,10 +4,6 @@
|
|||||||
#![deny(intra_doc_link_resolution_failure)]
|
#![deny(intra_doc_link_resolution_failure)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
#[cfg(feature = "derive")]
|
|
||||||
#[macro_use]
|
|
||||||
extern crate ff_derive;
|
|
||||||
|
|
||||||
#[cfg(feature = "derive")]
|
#[cfg(feature = "derive")]
|
||||||
pub use ff_derive::*;
|
pub use ff_derive::*;
|
||||||
|
|
||||||
|
@ -469,6 +469,8 @@ impl JubjubBls12 {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_jubjub_bls12() {
|
fn test_jubjub_bls12() {
|
||||||
|
use hex_literal::hex;
|
||||||
|
|
||||||
let params = JubjubBls12::new();
|
let params = JubjubBls12::new();
|
||||||
|
|
||||||
tests::test_suite::<Bls12>(¶ms);
|
tests::test_suite::<Bls12>(¶ms);
|
||||||
|
@ -6,12 +6,7 @@
|
|||||||
// Catch documentation errors caused by code changes.
|
// Catch documentation errors caused by code changes.
|
||||||
#![deny(intra_doc_link_resolution_failure)]
|
#![deny(intra_doc_link_resolution_failure)]
|
||||||
|
|
||||||
#[macro_use]
|
use lazy_static::lazy_static;
|
||||||
extern crate lazy_static;
|
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
#[macro_use]
|
|
||||||
extern crate hex_literal;
|
|
||||||
|
|
||||||
pub mod block;
|
pub mod block;
|
||||||
pub mod constants;
|
pub mod constants;
|
||||||
|
@ -6,6 +6,7 @@ use crate::{
|
|||||||
primitives::Note,
|
primitives::Note,
|
||||||
};
|
};
|
||||||
use ff::{BitIterator, PrimeField, PrimeFieldRepr};
|
use ff::{BitIterator, PrimeField, PrimeFieldRepr};
|
||||||
|
use lazy_static::lazy_static;
|
||||||
use pairing::bls12_381::{Bls12, Fr, FrRepr};
|
use pairing::bls12_381::{Bls12, Fr, FrRepr};
|
||||||
use rand_core::{CryptoRng, RngCore};
|
use rand_core::{CryptoRng, RngCore};
|
||||||
use std::io::{self, Read, Write};
|
use std::io::{self, Read, Write};
|
||||||
|
Loading…
Reference in New Issue
Block a user