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
//! # Ark low-level FFI API
//!
//! This is the low-level mostly unsafe layer that defines the ABI between the Ark host and Wasm modules.
//! It is not intended to be used directly, instead users should use the safe and easier to use `ark-api` crate in modules.
//!
//! Also see [🗺️ APIs in Ark Developer Guide](https://ark.embark.dev/guide/api/index.html)

// crate-specific exceptions:
#![deny(
    improper_ctypes, // Ensures that types used on FFI boundaries are actually correct
    clippy::panic,
    clippy::unimplemented,
    clippy::expect_used,
    clippy::unwrap_used,
    clippy::ok_expect,
    clippy::indexing_slicing,
    rustdoc::broken_intra_doc_links,
    rustdoc::private_intra_doc_links,
    rustdoc::missing_crate_level_docs,
)]

#[macro_use]
extern crate bitflags;

#[macro_use]
mod api_id;
mod error_code;
mod pod_helpers;
mod version;
pub use api_id::*;
pub use error_code::*;
pub use pod_helpers::*;
pub use version::*;

mod ffi;
pub use ffi::*;

pub mod entrypoints;