Skip to main content

MAX_FILE_LOADING_DEPTH

Constant MAX_FILE_LOADING_DEPTH 

Source
pub const MAX_FILE_LOADING_DEPTH: usize = 20;
Expand description

Maximum level of nesting for loaded files.

Loading or rendering a document may cause other SVG documents or files to be loaded, and in turn those other files may request further files on their own. Librsvg will limit the maximum depth of nesting for loaded files, for XInclude, referencing documents via <image>, CSS includes, etc., and also to deal with files that recursively reference themselves.