Small zome to mange a list of agents that are added/blocked
This module is designed to be included in other DNAs, assuming as little as possible from those. It is packaged as a holochain zome, and an npm package that offers native Web Components that can be used across browsers and frameworks.
- 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]
contacts = {git = "https://github.com/holochain-open-dev/contacts", package = "contacts"}
- Create a
src
folder besides theCargo.toml
with this content:
extern crate contacts;
- Add the zome into your
dna.yaml
file with the namecontacts
. - Compile the DNA with the usual
CARGO_TARGET=target cargo build --release --target wasm32-unknown-unknown
.
TODO
See our developer setup guide.