Skip to main content

nominal_api_proto/
lib.rs

1// Bazel (build_bazel_proto.rs) or generate-bindings (build.rs): codegen into OUT_DIR at build time
2#[cfg(all(any(bazel, feature = "generate-bindings"), not(feature = "_build")))]
3mod proto {
4    include!(concat!(env!("OUT_DIR"), "/proto/mod.rs"));
5}
6
7// Default Cargo: pre-generated into src/proto/ (not active during _build pre-gen step)
8#[cfg(all(not(any(bazel, feature = "generate-bindings")), not(feature = "_build")))]
9mod proto;
10
11#[cfg(any(bazel, not(feature = "_build")))]
12pub use proto::*;