1pub use crate::capability::create_cap_claim;
2pub use crate::capability::create_cap_grant;
3pub use crate::capability::delete_cap_grant;
4pub use crate::capability::generate_cap_secret;
5pub use crate::capability::update_cap_grant;
6pub use crate::chain::get_agent_activity;
7pub use crate::chain::must_get_agent_activity;
8pub use crate::chain::query;
9pub use crate::clone::*;
10#[cfg(feature = "unstable-countersigning")]
11pub use crate::countersigning::session_times_from_millis;
12pub use crate::ed25519::sign;
13pub use crate::ed25519::sign_ephemeral;
14pub use crate::ed25519::sign_ephemeral_raw;
15pub use crate::ed25519::sign_raw;
16pub use crate::ed25519::verify_signature;
17pub use crate::ed25519::verify_signature_raw;
18pub use crate::entry::create;
19pub use crate::entry::create_entry;
20pub use crate::entry::delete;
21pub use crate::entry::delete_entry;
22pub use crate::entry::get;
23pub use crate::entry::get_details;
24pub use crate::entry::must_get_action;
25pub use crate::entry::must_get_entry;
26pub use crate::entry::must_get_valid_record;
27pub use crate::entry::update;
28pub use crate::entry::update_entry;
29pub use crate::entry_type;
30pub use crate::entry_types;
31pub use crate::hash::*;
32pub use crate::hash_path::anchor::anchor;
33pub use crate::hash_path::anchor::list_anchor_addresses;
34pub use crate::hash_path::anchor::list_anchor_tags;
35pub use crate::hash_path::anchor::list_anchor_type_addresses;
36pub use crate::hash_path::anchor::TryFromPath;
37pub use crate::hash_path::path::HdkPathExt;
38pub use crate::hdk::*;
39pub use crate::info::agent_info;
40pub use crate::info::call_info;
41pub use crate::info::dna_info;
42pub use crate::info::zome_info;
43pub use crate::link::count_links;
44pub use crate::link::create_link;
45pub use crate::link::delete_link;
46pub use crate::link::get_link_details;
47pub use crate::link::get_links;
48pub use crate::link::GetLinksInputBuilder;
49pub use crate::link::LinkTypeFilterExt;
50pub use crate::map_extern;
51pub use crate::map_extern::ExternResult;
52pub use crate::migrate::*;
53pub use crate::p2p::call;
54pub use crate::p2p::call_remote;
55pub use crate::p2p::emit_signal;
56pub use crate::p2p::send_remote_signal;
57pub use crate::random::*;
58pub use crate::time::sys_time;
59pub use crate::validation_receipt::get_validation_receipts;
60pub use crate::x_salsa20_poly1305::create_x25519_keypair;
61pub use crate::x_salsa20_poly1305::ed_25519_x_salsa20_poly1305_decrypt;
62pub use crate::x_salsa20_poly1305::ed_25519_x_salsa20_poly1305_encrypt;
63pub use crate::x_salsa20_poly1305::x_25519_x_salsa20_poly1305_decrypt;
64pub use crate::x_salsa20_poly1305::x_25519_x_salsa20_poly1305_encrypt;
65pub use crate::x_salsa20_poly1305::x_salsa20_poly1305_decrypt;
66pub use crate::x_salsa20_poly1305::x_salsa20_poly1305_encrypt;
67pub use crate::x_salsa20_poly1305::x_salsa20_poly1305_shared_secret_create_random;
68pub use crate::x_salsa20_poly1305::x_salsa20_poly1305_shared_secret_export;
69pub use crate::x_salsa20_poly1305::x_salsa20_poly1305_shared_secret_ingest;
70pub use hdi;
71pub use hdi::map_extern_infallible;
72pub use hdi::op::OpHelper;
73pub use hdi::prelude::app_entry;
74pub use hdi::prelude::Anchor;
75pub use hdi::prelude::Component;
76pub use hdi::prelude::Path;
77pub use hdi::prelude::ShardStrategy;
78pub use hdi::prelude::TypedPath;
79pub use hdk_derive;
80pub use hdk_derive::dna_properties;
81pub use hdk_derive::hdk_dependent_entry_types;
82pub use hdk_derive::hdk_dependent_link_types;
83pub use hdk_derive::hdk_entry_helper;
84pub use hdk_derive::hdk_entry_types;
85pub use hdk_derive::hdk_entry_types_conversions;
86pub use hdk_derive::hdk_extern;
87pub use hdk_derive::hdk_link_types;
88pub use hdk_derive::hdk_to_coordinates;
89pub use hdk_derive::EntryDefRegistration;
90pub use hdk_derive::UnitEnum;
91pub use holo_hash;
92pub use holo_hash::ActionHash;
93pub use holo_hash::AgentPubKey;
94pub use holo_hash::AnyDhtHash;
95pub use holo_hash::AnyLinkableHash;
96pub use holo_hash::EntryHash;
97pub use holo_hash::EntryHashes;
98pub use holo_hash::ExternalHash;
99pub use holo_hash::HasHash;
100pub use holo_hash::HoloHash;
101pub use holo_hash::HoloHashed;
102pub use holochain_wasmer_guest::*;
103pub use holochain_zome_types;
104pub use holochain_zome_types::prelude::*;
105pub use std::collections::BTreeSet;
106pub use std::collections::HashSet;
107pub use std::convert::TryFrom;
108pub use tracing;
109pub use tracing::{debug, error, info, instrument, trace, warn};
110
111#[cfg(feature = "unstable-countersigning")]
112pub use crate::countersigning::accept_countersigning_preflight_request;
113
114#[cfg(feature = "unstable-functions")]
115pub use crate::time::schedule;
116
117#[cfg(feature = "mock")]
118pub use mockall;
119
120#[cfg(feature = "mock")]
121pub use crate::hdk::MockHdkT;
122
123#[macro_export]
125macro_rules! holochain_externs {
126 () => {
127 holochain_wasmer_guest::host_externs!(
128 trace:1,
129 hash:1,
130 unreachable:1,
131 verify_signature:1,
132 sign:1,
133 sign_ephemeral:1,
134 zome_info:1,
135 call_info:1,
136 dna_info:1,
137 random_bytes:1,
138 sys_time:1,
139 agent_info:1,
140 capability_claims:1,
141 capability_grants:1,
142 capability_info:1,
143 get:1,
144 get_details:1,
145 get_links:1,
146 get_link_details:1,
147 count_links:1,
148 get_agent_activity:1,
149 must_get_entry:1,
150 must_get_valid_record:1,
151 must_get_action:1,
152 query:1,
153 call_remote:1,
154 call:1,
155 create:1,
156 emit_signal:1,
157 send_remote_signal:1,
158 create_link:1,
159 delete_link:1,
160 update:1,
161 delete:1,
162 x_salsa20_poly1305_shared_secret_create_random:1,
163 x_salsa20_poly1305_shared_secret_export:1,
164 x_salsa20_poly1305_shared_secret_ingest:1,
165 x_salsa20_poly1305_encrypt:1,
166 x_salsa20_poly1305_decrypt:1,
167 x_25519_x_salsa20_poly1305_encrypt:1,
168 x_25519_x_salsa20_poly1305_decrypt:1,
169 ed_25519_x_salsa20_poly1305_encrypt:1,
170 ed_25519_x_salsa20_poly1305_decrypt:1,
171 create_x25519_keypair:1,
172 create_clone_cell:1,
173 disable_clone_cell:1,
174 enable_clone_cell:1,
175 delete_clone_cell:1,
176 close_chain:1,
177 open_chain:1,
178 get_validation_receipts:1
179 );
180
181 #[cfg(feature = "unstable-countersigning")]
182 holochain_wasmer_guest::host_externs!(
183 accept_countersigning_preflight_request:1
184 );
185
186 #[cfg(feature = "unstable-functions")]
187 holochain_wasmer_guest::host_externs!(
188 get_agent_key_lineage:1,
189 block_agent:1,
190 unblock_agent:1,
191 schedule:1
192 );
193 };
194}
195
196#[cfg(not(feature = "mock"))]
197holochain_externs!();