1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Core Claw VCS object types, IDs, hashing, and COF encoding.
//!
//! `claw-core` owns the stable in-repository data model: typed objects,
//! content-addressed IDs, Protocol Buffer conversions, and Claw Object Format
//! helpers. Higher-level crates should use these APIs instead of duplicating
//! serialization or hashing behavior.
//!
//! # Example
//!
//! ```rust
//! use claw_core::hash::content_hash;
//! use claw_core::object::TypeTag;
//!
//! let id = content_hash(TypeTag::Blob, b"hello");
//! assert_eq!(id.as_bytes().len(), 32);
//! ```
//!
/// Claw Object Format encoding and decoding.
/// Core error types shared across object encoding and conversion.
/// Prost-generated Protocol Buffer bindings.
/// Domain-separated content hashing helpers.
/// Strongly typed object, intent, change, and conflict identifiers.
/// Top-level repository object enum and type tags.
/// Deterministic conversions between core objects and generated protobuf types.
/// Hand-written Claw VCS object model types.
pub use CoreError;
pub use content_hash;
pub use ;
pub use Object;