Expand description
Common constants used throughout the library.
This module contains configuration values and limits that help ensure secure and efficient operation of the library.
§Examples
use html_generator::constants::{DEFAULT_LANGUAGE, DEFAULT_MAX_INPUT_SIZE};
assert_eq!(DEFAULT_LANGUAGE, "en-GB");
assert!(DEFAULT_MAX_INPUT_SIZE > 0);Constants§
- DEFAULT_
LANGUAGE - Default language code for HTML generation (British English).
- DEFAULT_
MAX_ INPUT_ SIZE - Maximum allowed input size (5MB) to prevent denial of service attacks.
- DEFAULT_
SYNTAX_ THEME - Default syntax highlighting theme (
github). - LANGUAGE_
CODE_ PATTERN - Regular expression pattern for validating language codes.
- MAX_
PATH_ LENGTH - Maximum file path length.
- MIN_
INPUT_ SIZE - Minimum required input size (1KB) for meaningful processing.