Crates.io | holochain_wasm_test_utils |
lib.rs | holochain_wasm_test_utils |
version | 0.5.0-dev.4 |
source | src |
created_at | 2021-07-01 11:14:15.96385 |
updated_at | 2024-11-06 02:20:00.361226 |
description | Utilities for Wasm testing for Holochain |
homepage | |
repository | |
max_upload_size | |
id | 417398 |
size | 31,190 |
This crate contains:
enum TestWasm
which enumerates all of those crates.impl From<TestWasm> for DnaWasm
to obtain the compiled Wasm artifacts for those crates.build.rs
file that builds all those crates for compile-time inclusion in the library.These Wasm crates directly test the host/guest implementation of Holochain without going through an HDK or other convenience interface.
We do this to make sure that it stays reasonably easy to interact with Holochain without using the hdk
and holochain_wasmer_*
crates.
The tests that run this Wasm generally sit in the ribosome.rs
module in core. This is necessary because the Wasm crates depend on certain global functions that core defines and needs to inject.