Skip to main content

MAX_FILE_SIZE

Constant MAX_FILE_SIZE 

Source
pub const MAX_FILE_SIZE: usize = _; // 10_485_760usize
Expand description

Maximum allowed file size for minification (10 MB).

minify_html rejects files larger than this with a MinificationError before reading them into memory.

ยงExamples

use html_generator::performance::MAX_FILE_SIZE;

assert_eq!(MAX_FILE_SIZE, 10 * 1024 * 1024);