From 913a291b2d3a8a6ea7d24c5f4c350a82a3cfa242 Mon Sep 17 00:00:00 2001 From: blaginin Date: Tue, 26 Nov 2024 19:15:49 +0000 Subject: [PATCH] Add a note on `with_recursion_limit` --- src/parser/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/parser/mod.rs b/src/parser/mod.rs index 6ed0fbfcd..bc2e68ef6 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -329,6 +329,9 @@ impl<'a> Parser<'a> { /// # Ok(()) /// # } /// ``` + /// + /// Note: when "std" feature is enabled, this crate uses additional stack overflow protection + // for some of its recursive methods. See [`recursive::recursive`] for more information. pub fn with_recursion_limit(mut self, recursion_limit: usize) -> Self { self.recursion_counter = RecursionCounter::new(recursion_limit); self