| 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 | |
| 13 | pub mod changeset; |
| 14 | pub mod codec; |
| 15 | pub mod id; |
| 16 | pub mod name; |
| 17 | pub mod objects; |
| 18 | pub mod tree; |
| 19 | |
| 20 | pub use changeset::{ |
| 21 | Change, ChangeOp, Changes, Changeset, ChangesetError, ChangesetParts, Signature, |
| 22 | }; |
| 23 | pub use codec::DecodeError; |
| 24 | pub use id::{IdHasher, Kind, ObjectId, ParseIdError}; |
| 25 | pub use name::{NameError, PathError, validate_name, validate_path}; |
| 26 | pub use objects::{MemoryObjects, Objects}; |
| 27 | pub 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 | }; |