Skip to content

Commit

Permalink
πŸ’š zv: Higher recursion limit for test builds
Browse files Browse the repository at this point in the history
We've a testcase that checks if ser/de of containers exceeding the
recursion limit, error out. Since these limits may not match that of the
default rustc limits, we can end up with rustc bailing on us[1].

Let's explicitly set a high enough Rust recursion limit for zvariant crate
when we're building for tests.
  • Loading branch information
zeenix committed Feb 9, 2024
1 parent e70fb28 commit a914163
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zvariant/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
// W/o this, we seem to get some bogus warning about `extern crate zbus`.
allow(unused_extern_crates),
)))]
#![cfg_attr(test, recursion_limit = "256")]

#[macro_use]
mod utils;
Expand Down

0 comments on commit a914163

Please sign in to comment.