Constant soroban_sdk::xdr::DEFAULT_XDR_RW_DEPTH_LIMIT
pub const DEFAULT_XDR_RW_DEPTH_LIMIT: u32 = 500; // 500u32
Expand description
Defines the maximum depth for recursive calls in Read/WriteXdr
to prevent stack overflow.
The depth limit is akin to limiting stack depth. Its purpose is to prevent the program from
hitting the maximum stack size allowed by Rust, which would result in an unrecoverable SIGABRT
.
For more information about Rust’s stack size limit, refer to the
Rust documentation.