Small zome to create and retrieve dna clones, in holochain RSM.
This module is designed to be included in other DNAs, assuming as little as possible from those. It is packaged as a holochain zome,
See our specification
.
- Create a new folder in the
zomes
of the consuming DNA, with the name you want to give to this zome in your DNA. - Add a new
Cargo.toml
in that folder. In its content, paste theCargo.toml
content from any zome. - Change the
name
properties of theCargo.toml
file to the name you want to give to this zome in your DNA. - Add this zome as a dependency in the
Cargo.toml
file:
[dependencies]
cloned_dna_tracker = {git = "https://github.com/holochain-open-dev/cloned-dnas-tracker", package = "cloned_dna_tracker"}
- Create a
src
folder besides theCargo.toml
with this content:
extern crate cloned_dna_tracker;
- Add the zome into your
*.dna.workdir/dna.json
file. - Compile the DNA with the usual
CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown
.
This respository is structured in the following way:
zome/
: example DNA with thecloned_dna_tracker
code.- Top level
Cargo.toml
is a virtual package necessary for other DNAs to include this zome by pointing to this git repository.
Read the Zome developer setup.