Closed lucksus closed 6 years ago
Tried to finish this tonight but really have to sleep now. @sphinxc0re, @Connoropolous, @maackle, someone, please fix the tree-level problem 🙏 then we can get rid of redundant JSON code in our DNA source :)
@lucksus fixed the recursive tree problem :) now the JSON just needs some minor tweaks. It's slightly different than core expects in a DNA file
Oh, I think this just answered my question in the other PR. Nice!
Use
ribosome::dna_run()
(from core) to get JSON from__hdk_get_json_definition()
from WASM and include that in the output.This almost works as expected! But not quite. The output is on the wrong level..
To test this, build
hc
this branch and point the Zome's Cargo.toml to a holohchain-rust that has these changes merged in: https://github.com/holochain/holochain-rust/pull/549/files.You should see the JSON printed on screen and it should appear in the
bundle.json
output.It is on the wrong level because
fn bundle_recurse(&self, path: &PathBuf) -> DefaultResult<Object>
is recursive (doh!) and the level on which we get the WASM from the build process is to deep in the tree for attaching the whole zome JSON.