16 releases
0.3.0-beta-dev… | Mar 25, 2024 |
---|---|
0.3.0-beta-dev.5 | Jul 1, 2023 |
0.2.5-rc.0 | Jan 23, 2024 |
0.2.4-rc.0 | Dec 12, 2023 |
0.1.1 | Mar 7, 2023 |
#736 in Cryptography
221 downloads per month
12KB
165 lines
hc-zome-module
This module is has been designed to be included in other DNAs, assuming as little as possible from those.
Ownership Info
Codeowner: @zo-el Consulted: None Informed: @jetttech
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 thezomes
of the consuming DNA. - Add a new
Cargo.toml
in that folder. paste the bellow content in.
[package]
name = "<ZOME_NAME>"
version = "0.0.0"
authors = [ "" ]
edition = "2018"
[lib]
name = "<ZOME_NAME>"
crate-type = [ "cdylib", "rlib" ]
[dependencies]
<ZOME_NAME> = {git = "https://github.com/zo-el/hc-zomes", branch = "develop", package = "<ZOME_NAME>"}
hdk = "0"
holo_hash = "0"
hc_utils = "0"
- Change the all properties of the
Cargo.toml
file from<ZOME_NAME>
to the appropriate zome you want to import. - Create a
src/lib.rs
folder besides theCargo.toml
with this content:
extern crate <ZOME_NAME>;
- Add the zome into your
*.dna.workdir/dna.yaml
file. - Compile the DNA with the usual
CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown
.
Dependencies
~11–25MB
~337K SLoC