nominal_api/lib.rs
1mod conjure {
2 include!(concat!(env!("OUT_DIR"), "/conjure/mod.rs"));
3}
4
5// Bazel: proto stubs generated by build_bazel.rs from descriptor set into OUT_DIR
6#[cfg(all(bazel, feature = "tonic"))]
7mod proto {
8 include!(concat!(env!("OUT_DIR"), "/proto/mod.rs"));
9}
10
11// Cargo: proto stubs pre-generated into src/proto/ by compile-protos binary
12#[cfg(all(not(bazel), feature = "tonic", not(feature = "_build")))]
13mod proto;
14
15#[cfg(all(any(bazel, not(feature = "_build")), feature = "tonic"))]
16pub mod tonic {
17 pub use crate::proto::*;
18}
19
20pub use conjure::*;