Skip to main content

MAX_MESSAGE_LENGTH

Constant MAX_MESSAGE_LENGTH 

Source
pub const MAX_MESSAGE_LENGTH: u64 = _; // 1_048_576u64
Expand description

The maximum allowed byte length for commit or tag messages.

§Design rationale

Set to 1 MiB to allow detailed changelogs while preventing abuse via gigabyte-sized text payloads.

§Examples

use libvctrl_handler::constants::MAX_MESSAGE_LENGTH;

assert_eq!(MAX_MESSAGE_LENGTH, 1024 * 1024_u64);