pub const MAX_NAME_LENGTH: u64 = 255; // 255u64Expand description
Re-exports of fundamental system constants.
§Purpose
These constants (like HASH_LENGTH and MAX_BLOB_SIZE) are used so
frequently that they are re-exported at the crate root. This saves the caller
from having to write libvctrl::constants::HASH_LENGTH everywhere.
§Examples
use libvctrl::HASH_LENGTH;
assert_eq!(HASH_LENGTH, 64);The maximum allowed byte length for names (e.g., branches, tags, file entries).
§Design rationale
255 bytes is a common filesystem limit for filenames. Enforcing this ensures compatibility with most mainstream filesystems when objects are checked out to disk.
§Examples
use libvctrl_handler::constants::MAX_NAME_LENGTH;
assert_eq!(MAX_NAME_LENGTH, 255_u64);