Skip to main content

Crate suture_protocol

Crate suture_protocol 

Source
Expand description

Suture Protocol — wire format for client-server communication.

Defines the request/response types used by the Suture Hub for push, pull, authentication, and repository management operations. All types are serializable via serde for JSON transport.

Structs§

AuthRequest
BlobDelta
BlobRef
BranchProto
ClientCapabilities
HandshakeRequest
HandshakeRequestV2
HandshakeResponse
HandshakeResponseV2
HashProto
ListReposResponse
PatchProto
PullRequest
PullRequestV2
PullResponse
PullResponseV2
PushRequest
PushRequestV2
PushResponse
RepoInfoResponse
ServerCapabilities

Enums§

AuthMethod
DeltaEncoding

Constants§

PROTOCOL_VERSION
PROTOCOL_VERSION_V2

Functions§

apply_delta
canonical_push_bytes
Build canonical bytes for push request signing. Format: repo_id \0 patch_count \0 (each patch: id \0 op \0 author \0 msg \0 timestamp \0) … branch_count \0 (each: name \0 target \0) …
compress
compute_delta
decompress
hash_to_hex
hex_to_hash