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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#![feature(try_trait)]
#![feature(never_type)]
#![warn(unused_extern_crates)]
extern crate backtrace;
extern crate base64;
extern crate chrono;
extern crate futures;
#[macro_use]
extern crate lazy_static;
extern crate multihash;
extern crate serde;
#[macro_use]
extern crate serde_json;
#[macro_use]
extern crate serde_derive;
extern crate snowflake;
#[macro_use]
extern crate holochain_json_derive;
extern crate holochain_json_api;
extern crate holochain_locksmith;
extern crate holochain_persistence_api;
extern crate lib3h_crypto_api;
extern crate regex;
#[cfg(test)]
#[macro_use]
extern crate maplit;
extern crate hcid;
extern crate wasmi;
#[macro_use]
extern crate log;
pub mod chain_header;
pub mod crud_status;
pub mod eav;
pub mod entry;
pub mod error;
#[macro_use]
extern crate objekt;
pub mod agent;
pub mod bits_n_pieces;
pub mod chain_migrate;
pub mod dna;
pub mod hdk_version;
pub mod link;
pub mod network;
pub mod signature;
pub mod time;
pub mod ugly;
pub mod validation;
#[macro_use]
extern crate holochain_logging;
pub const HDK_HASH: &str = env!(
"HDK_HASH",
"failed to obtain HDK hash from build environment. Check build.rs"
);
pub const GIT_HASH: &str = env!("GIT_HASH", "");
pub const GIT_BRANCH: &str = env!("GIT_BRANCH", "");
pub const BUILD_DATE: &str = env!("BUILD_DATE", "");
#[cfg(test)]
mod test_hash {
use super::*;
#[test]
fn test_hash() {
assert_eq!(HDK_HASH.chars().count(), 32);
assert!(
HDK_HASH.is_ascii(),
"HDK_HASH contains non-ascii characters"
);
}
}