Elffuss BraidHub

utopia-ia/elffuss-braid public

main · 1021 BRawPermalink
1// SPDX-License-Identifier: Apache-2.0
2// Copyright (c) 2026 UtopiaIA
3
4//! The object model and canonical on-disk format of elffuss-braid.
5//!
6//! This crate does no I/O and must keep compiling for `wasm32-unknown-unknown`.
7//! Everything that gets hashed is encoded by hand: those bytes are the format,
8//! so they are specified in `docs/spec/format-v1.md` and pinned by golden
9//! vectors in the tests.
10
11#![forbid(unsafe_code)]
12
13pub mod changeset;
14pub mod codec;
15pub mod id;
16pub mod name;
17pub mod objects;
18pub mod tree;
19
20pub use changeset::{
21 Change, ChangeOp, Changes, Changeset, ChangesetError, ChangesetParts, Signature,
22};
23pub use codec::DecodeError;
24pub use id::{IdHasher, Kind, ObjectId, ParseIdError};
25pub use name::{NameError, PathError, validate_name, validate_path};
26pub use objects::{MemoryObjects, Objects};
27pub use tree::{
28 Directory, Entry, EntryEdit, EntryKind, GitId, NewNode, Node, NodeCache, TreeError, Updated,
29 build_directory, check_edits, find_entry, read_directory, update_directory,
30};