web3api_wasm_rs/lib.rs
1//! # The Polywrap Rust/WASM Runtime Library
2//!
3//! Polywrap is a WASM-standard developer tool for integrating Web3 protocols into applications.
4//! It makes it possible for applications on any platform, written in any language,
5//! to read and write data to Web3 protocols.
6//! This eliminates the need for client-side SDKs, making dapps lightweight and multi-platform.
7//!
8//! This library is the Rust implementation of the Polywrap WASM runtime.
9//! (There's another implementation in AssemblyScript)
10//!
11//! **Warning** The library is still in rapid development and everything may change until 1.0 is
12//! shipped.
13//!
14//! ## Usage
15//!
16//! <https://docs.polywrap.io/>
17
18#![deny(dead_code)]
19#![deny(unreachable_code)]
20#![deny(rustdoc::broken_intra_doc_links)]
21
22pub mod abort;
23pub mod debug;
24pub mod debug_log;
25pub mod env;
26pub mod get_implementations;
27pub mod invoke;
28pub mod malloc;
29pub mod msgpack;
30pub mod subinvoke;
31
32pub use abort::*;
33pub use debug::*;
34pub use debug_log::*;
35pub use env::*;
36pub use get_implementations::*;
37pub use invoke::*;
38pub use subinvoke::*;
39
40pub use msgpack::{
41 DecodeError, EncodeError, EnumTypeError, Read, ReadDecoder, Write, WriteEncoder,
42};
43
44pub use num_bigint::BigInt;
45pub use bigdecimal::BigDecimal as BigNumber;
46pub use serde_json as JSON;
47pub use std::collections::BTreeMap as Map;