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
72
73
74
75
//! Parse .jar s and  .class es to generate Rust FFI bindings using JNI.

#[macro_use] mod java;

/// Configuration formats for invoking jni_bindgen
pub mod config { // Part of the actual official API of this crate.
    #[allow(unused_imports)] use super::*;

    pub mod runtime;
    pub mod toml;
}

/// Rust generation logic
mod emit_rust {
    #[allow(unused_imports)] use super::*;

    mod context;
    mod fields;
    mod known_docs_url;
    mod methods;
    mod modules;
    mod preamble;
    mod structs;

    pub use context::Context;
    use fields::*;
    use known_docs_url::*;
    use methods::*;
    use modules::*;
    use preamble::*;
    use structs::*;
}

/// JNI and Rust identifier parsing and categorizing utilities
mod identifiers {
    #[allow(unused_imports)] use super::*;
    use std::iter::*;

    mod field_mangling_style;
    mod method_mangling_style;
    mod rust_identifier;

    pub use field_mangling_style::*;
    pub use method_mangling_style::*;
    pub use rust_identifier::*;
}

/// Core generation logic
mod run {
    #[allow(unused_imports)] use super::*;

    mod run;

    pub use run::run;
    pub use run::RunResult;
}

mod util {
    #[allow(unused_imports)] use super::*;

    mod dedupe_file_set;
    mod difference;
    mod generated_file;
    mod progress;

    pub use dedupe_file_set::{ConcurrentDedupeFileSet, DedupeFileSet};
    pub use difference::Difference;
    pub use generated_file::write_generated;
    pub use progress::Progress;
}


pub(crate) use identifiers::*;
pub use run::run;
pub use run::RunResult;