Skip to main content

xmtp_configuration/common/
handles.rs

1//! Handle configuration values
2
3/// Default minimum number of characters in a handle's name part. The backend
4/// applies it when no `handles.min_name_length` is configured, and a client
5/// uses it when a snapshot does not carry the value.
6pub const BACKEND_DEFAULT_HANDLE_MIN_NAME_LENGTH: u32 = 3;
7
8/// The most characters a handle's name part can hold. The handle grammar
9/// applies it, and the backend refuses a `handles.min_name_length` above it.
10pub const MAX_HANDLE_NAME_LEN: usize = 27;