hc-zome-module
This module is has been designed to be included in other DNAs, assuming as little as possible from those.
List of available zomes
profile: This profile zome is a simple implementation of managing agent details
Installation and usage
Including the zome in your DNA
- Create a new folder with the zome name (e.g
profile) in thezomesof the consuming DNA. - Add a new
Cargo.tomlin that folder. paste the bellow content in.
[]
= "<ZOME_NAME>"
= "0.0.0"
= [ "" ]
= "2018"
[]
= "<ZOME_NAME>"
= [ "cdylib", "rlib" ]
[]
<ZOME_NAME> = {git = "https://github.com/zo-el/hc-zomes", branch = "develop", package = "<ZOME_NAME>"}
= "0"
= "0"
= "0"
- Change the all properties of the
Cargo.tomlfile from<ZOME_NAME>to the appropriate zome you want to import. - Create a
src/lib.rsfolder besides theCargo.tomlwith this content:
extern crate <ZOME_NAME>;
- Add the zome into your
*.dna.workdir/dna.yamlfile. - Compile the DNA with the usual
CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown.