#![warn(unused_extern_crates)]
#[macro_use]
extern crate serde_derive;
pub extern crate holochain_core_types;
#[macro_use]
pub extern crate holochain_json_derive;
pub extern crate holochain_json_api;
pub extern crate holochain_persistence_api;
#[cfg_attr(tarpaulin, skip)]
pub mod api_serialization;
pub mod macros;
pub mod memory;
use std::path::PathBuf;
pub fn wasm_target_dir(test_path: &PathBuf, wasm_path: &PathBuf) -> PathBuf {
let mut target_dir = PathBuf::new();
if let Ok(prefix) = std::env::var("HC_TARGET_PREFIX") {
target_dir.push(PathBuf::from(prefix));
target_dir.push("crates");
target_dir.push(test_path);
}
target_dir.push(wasm_path);
target_dir.push(PathBuf::from("target"));
target_dir
}