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
59
60
61
62
63
64
65
66
67
68
69
70
71
// #![feature(result_flattening)]
pub use redgold_data as datas;
pub use redgold_schema as schema;
// #![forbid(unsafe_code)]
// #![cfg_attr(not(debug_assertions), allow(warnings))] // Forbid warnings in release builds
// #![warn(clippy::all, rust_2018_idioms)]
//
// pub mod constants;
// pub mod gui;
// pub mod mnemonic_builder;
// pub mod rg_merkle;
// pub mod sym_crypt;
// pub mod util;
// pub mod wallet;
//
// pub mod structs {
// include!(concat!(env!("OUT_DIR"), "/structs.rs"));
// }
//
// pub use gui::image_load::Image;
// pub use gui::ClientApp;
//
// // ----------------------------------------------------------------------------
// // When compiling for web:
//
// #[cfg(target_arch = "wasm32")]
// use eframe::wasm_bindgen::{self, prelude::*};
//
// /// This is the entry-point for all the web-assembly.
// /// This is called once from the HTML.
// /// It loads the app, installs some callbacks, then returns.
// /// You can add more callbacks like this if you want to call in to your code.
// #[cfg(target_arch = "wasm32")]
// #[wasm_bindgen]
// pub fn start(canvas_id: &str) -> Result<(), eframe::wasm_bindgen::JsValue> {
// let app = ClientApp::default();
// eframe::start_web(canvas_id, Box::new(app))
// }