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
//! Holochain Development Kit (HDK)
//!
//! The HDK helps in writing Holochain applications.
//! Holochain DNAs need to be written in WebAssembly, or a language that compiles to Wasm,
//! such as Rust. The HDK handles some of the low-level details of Wasm execution like
//! memory allocation, (de)serializing data, and shuffling data and functions into and out of Wasm
//! memory via some helper functions and Holochain-specific macros.
//!
//! The HDK lets the developer focus on application logic and, as much as possible, forget about the
//! underlying low-level implementation. It would be possible to write DNA source code without an
//! HDK, but it would be extremely tedious!
#![feature(try_from)]
#![feature(never_type)]
pub extern crate serde;
extern crate serde_json;
#[macro_use]
extern crate serde_derive;
#[macro_use]
extern crate bitflags;
#[macro_use]
extern crate lazy_static;
pub extern crate holochain_core_types;
#[macro_use]
extern crate holochain_core_types_derive;
pub extern crate holochain_wasm_utils;

pub mod api;
#[macro_use]
pub mod entry_definition;
pub mod error;
pub mod global_fns;
pub mod globals;
pub mod init_globals;
pub mod macros;

pub use holochain_wasm_utils::api_serialization::validation::*;

pub mod meta;

pub use crate::api::*;
pub use holochain_core_types::validation::*;