Expand description
The rules both halves apply to a request, so neither can drift from the other.
Enums§
- Validation
Error - Why a request was rejected.
Constants§
- MAX_
FILE_ PATH_ BYTES - The longest
file_patheither side accepts, in bytes:PATH_MAX, for the same two reasons. - MAX_
PROJECT_ KEY_ BYTES - The longest
project_keyeither side accepts, in bytes:PATH_MAX, so a key derived from a checkout’s path always fits, while every push and pull’s audit leaf, which names its project, stays small.
Functions§
- validate_
base_ sha256 - Enforces that a
base_sha256is whatcrate::content_sha256writes: 64 hex digits. Either case is accepted, as the server compares them without regard to case. - validate_
file_ path - Enforces that a
file_pathis safe to join onto a memory directory on any machine that later pulls it. - validate_
project_ key - Enforces that a
project_keyis present and no longer thanMAX_PROJECT_KEY_BYTES.