1#![allow(non_camel_case_types)]
2#![allow(non_snake_case)]
3#![allow(dead_code)]
4#![allow(unused_imports)]
5
6#![cfg_attr(all(feature = "mesalock_sgx",
7 not(target_env = "sgx")), no_std)]
8#![cfg_attr(target_env = "sgx", feature(rustc_private))]
9
10#[cfg(all(feature = "mesalock_sgx", not(target_env = "sgx")))]
11#[macro_use]
12extern crate sgx_tstd as std;
13
14#[cfg(all(feature = "mesalock_sgx", not(target_env = "sgx")))]
15extern crate sgx_libc as libc;
16
17#[cfg(any(feature = "mesalock_sgx", target_env = "sgx"))]
18extern crate ring_sgx as ring;
19#[cfg(not(any(feature = "mesalock_sgx", target_env = "sgx")))]
20extern crate ring;
21
22#[cfg(any(feature = "mesalock_sgx", target_env = "sgx"))]
23extern crate rand_sgx as rand;
24#[cfg(not(any(feature = "mesalock_sgx", target_env = "sgx")))]
25extern crate rand;
26
27#[cfg(any(feature = "mesalock_sgx", target_env = "sgx"))]
28extern crate num_bigint_sgx as num_bigint;
29#[cfg(not(any(feature = "mesalock_sgx", target_env = "sgx")))]
30extern crate num_bigint;
31
32#[cfg(any(feature = "mesalock_sgx", target_env = "sgx"))]
33extern crate rust_base58_sgx as rust_base58;
34#[cfg(not(any(feature = "mesalock_sgx", target_env = "sgx")))]
35extern crate rust_base58;
36
37#[cfg(any(feature = "mesalock_sgx", target_env = "sgx"))]
38extern crate rust_crypto_sgx as crypto;
39#[cfg(not(any(feature = "mesalock_sgx", target_env = "sgx")))]
40extern crate crypto;
41
42#[cfg(any(feature = "mesalock_sgx", target_env = "sgx"))]
43extern crate serde_sgx as serde;
44#[cfg(not(any(feature = "mesalock_sgx", target_env = "sgx")))]
45extern crate serde;
46
47#[cfg(any(feature = "mesalock_sgx", target_env = "sgx"))]
48extern crate serde_derive_sgx as serde_derive;
49#[cfg(not(any(feature = "mesalock_sgx", target_env = "sgx")))]
50extern crate serde_derive;
51
52#[cfg(any(feature = "mesalock_sgx", target_env = "sgx"))]
53extern crate num_traits_sgx as num_traits;
54#[cfg(not(any(feature = "mesalock_sgx", target_env = "sgx")))]
55extern crate num_traits;
56
57#[cfg(any(feature = "mesalock_sgx", target_env = "sgx"))]
58extern crate num_integer_sgx as num_integer;
59#[cfg(not(any(feature = "mesalock_sgx", target_env = "sgx")))]
60extern crate num_integer;
61
62#[cfg(any(feature = "mesalock_sgx", target_env = "sgx"))]
63extern crate untrusted_sgx as untrusted;
64#[cfg(not(any(feature = "mesalock_sgx", target_env = "sgx")))]
65extern crate untrusted;
66
67#[cfg(any(feature = "mesalock_sgx", target_env = "sgx"))]
68extern crate bytes_sgx as bytes;
69#[cfg(not(any(feature = "mesalock_sgx", target_env = "sgx")))]
70extern crate bytes;
71
72#[cfg(any(feature = "mesalock_sgx", target_env = "sgx"))]
73extern crate regex_sgx as regex;
74#[cfg(not(any(feature = "mesalock_sgx", target_env = "sgx")))]
75extern crate regex;
76
77#[macro_use]
78extern crate lazy_static;
79
80
81pub mod bits;
82pub mod c;
83pub mod hash;
84pub mod hdwallet;
85pub mod limb;
86pub mod sign;
87
88#[macro_use]
89mod debug;
90
91#[macro_use]
92pub mod arithmetic;
93
94#[macro_use]
95pub mod bssl;
96
97pub mod ec;
98pub mod errors;
99pub mod io;
100
101#[macro_use]
102pub mod test;