We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 195b424 commit 482d566Copy full SHA for 482d566
src/config.rs
@@ -58,7 +58,9 @@ impl Config {
58
59
max_file_size: env("DOCSRS_MAX_FILE_SIZE", 50 * 1024 * 1024)?,
60
max_file_size_html: env("DOCSRS_MAX_FILE_SIZE_HTML", 50 * 1024 * 1024)?,
61
- max_parse_memory: env("DOCSRS_MAX_PARSE_MEMORY", 350 * 1024 * 1024)?,
+ // LOL HTML only uses as much memory as the size of the start tag!
62
+ // https://github.com/rust-lang/docs.rs/pull/930#issuecomment-667729380
63
+ max_parse_memory: env("DOCSRS_MAX_PARSE_MEMORY", 5 * 1024 * 1024)?,
64
})
65
}
66
0 commit comments