Skip to content

Commit ab68f87

Browse files
Jouzonagarajm22
authored andcommitted
Revert lib rs exports changes
1 parent 45463aa commit ab68f87

1 file changed

Lines changed: 2 additions & 27 deletions

File tree

lib/ain-rs-exports/src/lib.rs

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -24,32 +24,6 @@ impl BlockTemplateWrapper {
2424

2525
#[cxx::bridge]
2626
pub mod ffi {
27-
// ========= FFI ==========
28-
pub struct CrossBoundaryResult {
29-
pub ok: bool,
30-
pub reason: String,
31-
}
32-
33-
// ========= Util ==========
34-
extern "Rust" {
35-
fn rs_try_from_utf8(result: &mut CrossBoundaryResult, string: &'static [u8]) -> String;
36-
}
37-
38-
// ========= Core ==========
39-
extern "Rust" {
40-
fn ain_rs_preinit(result: &mut CrossBoundaryResult);
41-
fn ain_rs_init_logging(result: &mut CrossBoundaryResult);
42-
fn ain_rs_init_core_services(result: &mut CrossBoundaryResult);
43-
fn ain_rs_wipe_evm_folder(result: &mut CrossBoundaryResult);
44-
fn ain_rs_stop_core_services(result: &mut CrossBoundaryResult);
45-
46-
// Networking
47-
fn ain_rs_init_network_json_rpc_service(result: &mut CrossBoundaryResult, addr: &str);
48-
fn ain_rs_init_network_grpc_service(result: &mut CrossBoundaryResult, addr: &str);
49-
fn ain_rs_init_network_subscriptions_service(result: &mut CrossBoundaryResult, addr: &str);
50-
fn ain_rs_stop_network_services(result: &mut CrossBoundaryResult);
51-
}
52-
5327
// ========== Block ==========
5428
#[derive(Default)]
5529
pub struct EVMBlockHeader {
@@ -102,12 +76,13 @@ pub mod ffi {
10276
pub key_id: u32,
10377
}
10478

105-
// ========= Core ==========
79+
// ========= FFI ==========
10680
pub struct CrossBoundaryResult {
10781
pub ok: bool,
10882
pub reason: String,
10983
}
11084

85+
// ========= Core ==========
11186
extern "Rust" {
11287
fn ain_rs_preinit(result: &mut CrossBoundaryResult);
11388
fn ain_rs_init_logging(result: &mut CrossBoundaryResult);

0 commit comments

Comments
 (0)