forked from matter-labs/bellman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lib.rs
58 lines (47 loc) · 1 KB
/
lib.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#![allow(unused_imports)]
#![allow(unused_macros)]
#[macro_use]
extern crate cfg_if;
pub extern crate pairing;
extern crate rand;
extern crate bit_vec;
extern crate byteorder;
#[macro_use]
mod log;
pub mod domain;
pub mod groth16;
#[cfg(feature = "gm17")]
pub mod gm17;
#[cfg(feature = "sonic")]
pub mod sonic;
mod group;
mod source;
mod multiexp;
#[cfg(test)]
mod tests;
cfg_if! {
if #[cfg(feature = "multicore")] {
#[cfg(feature = "wasm")]
compile_error!("Multicore feature is not yet compatible with wasm target arch");
mod multicore;
mod worker {
pub use crate::multicore::*;
}
} else {
mod singlecore;
mod worker {
pub use crate::singlecore::*;
}
}
}
mod cs;
pub use self::cs::*;
use std::str::FromStr;
use std::env;
cfg_if!{
if #[cfg(any(not(feature = "nolog"), feature = "sonic"))] {
fn verbose_flag() -> bool {
option_env!("BELLMAN_VERBOSE").unwrap_or("0") == "1"
}
}
}