1#[cfg(not(any(feature = "conjure", feature = "tonic")))]
3compile_error!("at least one of the `conjure` or `tonic` features must be enabled");
4
5#[cfg(all(feature = "conjure", any(bazel, feature = "generate-bindings")))]
7mod conjure {
8 include!(concat!(env!("OUT_DIR"), "/conjure/mod.rs"));
9}
10
11#[cfg(all(feature = "conjure", not(any(bazel, feature = "generate-bindings")), not(feature = "_build")))]
13mod conjure;
14
15#[cfg(all(any(bazel, feature = "generate-bindings"), feature = "tonic"))]
17mod proto {
18 include!(concat!(env!("OUT_DIR"), "/proto/mod.rs"));
19}
20
21#[cfg(all(
23 not(any(bazel, feature = "generate-bindings")),
24 feature = "tonic",
25 not(feature = "_build")
26))]
27mod proto;
28
29#[cfg(all(any(bazel, not(feature = "_build")), feature = "tonic"))]
30pub mod tonic {
31 pub use crate::proto::*;
32}
33
34#[cfg(all(feature = "conjure", not(feature = "_build")))]
35pub use conjure::*;