Expand description
The content-addressing abstractions for gantz.
Modules§
- registry
- A registry tracking graphs, commits and names (branches).
Structs§
- Commit
- A commit captures a snapshot of a
Graph. - Commit
Addr - The content address of a commit.
- Content
Addr - The content address of a graph.
- Content
Addr Short - Provides a
Displayimplementation that formats the CA into shorthand form. - Graph
Addr - The content address of a graph.
- Registry
- A registry of content-addressed graphs, commits of those graphs, and optional names for those commits.
Enums§
- Head
- Acts as a pointer to the current working graph, whether directly to a commit or to a name mapping.
Traits§
- CaHash
- Types that can be hashed to produce a content address.
Functions§
- commit_
addr - Shorthand for producing the address of a
Commit. - content_
addr - Hash some type implementing
CaHash. - graph_
addr - Calculate the content address of a graph.
- graph_
addr_ with_ nodes - A more efficient alternative to
addrfor when the node content addresses are already known. - hash_
graph - The implementation of
addrwith hasher provided. - hash_
graph_ with_ nodes - The implementation of
addr_with_nodeswith hasher provided. - node_
addrs - Hash all the nodes and return a map from node IDs to their content addresses.
Type Aliases§
- Branch
- Represents a name used to track a working series of commits.
- Hasher
- The
blake3hasher used for gantz’ content addressing. - Timestamp
- The timestamp of a commit, represented as the duration since
UNIX_EPOCH.
Derive Macros§
- CaHash
- Re-export the derive macro.
Derive macro for
CaHash.