nominal_api_conjure/lib.rs
1// The compute API series unions are mutually recursive, so their derived `Ord::cmp`
2// bodies form a large call cycle. rustc bounds the MIR inliner's cycle detection by the
3// crate recursion limit, and at the default (128) it fails to see the cycle and reports
4// E0391 in optimized builds.
5#![recursion_limit = "1024"]
6
7// Bazel (build_bazel.rs) or generate-bindings (build.rs): codegen into OUT_DIR at build time
8#[cfg(all(any(bazel, feature = "generate-bindings"), not(feature = "_build")))]
9mod conjure {
10 include!(concat!(env!("OUT_DIR"), "/conjure/mod.rs"));
11}
12
13// Default Cargo: pre-generated into src/conjure/ (not active during _build pre-gen step)
14#[cfg(all(
15 not(any(bazel, feature = "generate-bindings")),
16 not(feature = "_build")
17))]
18mod conjure;
19
20#[cfg(not(feature = "_build"))]
21pub use conjure::*;