[][src]Crate holochain_dna

holochain_dna is a library for working with holochain dna files.

It includes utilities for representing dna structures in memory, as well as serializing and deserializing dna, mainly to json format.

Examples

use holochain_dna::Dna;

let name = String::from("My Holochain DNA");

let mut dna = Dna::new();
dna.name = name.clone();

let json = dna.to_json();

let dna2 = Dna::from_json_str(&json).unwrap();
assert_eq!(name, dna2.name);

Modules

wasm

holochain_dna::wasm is a module for managing webassembly code

zome

holochain_dna::zome is a set of structs for working with holochain dna.

Structs

Dna

Represents the top-level holochain dna object.