Skip to main content

nominal_api/
lib.rs

1// compile_error if both conjure and tonic are disabled — the crate would be empty
2#[cfg(not(any(feature = "conjure", feature = "tonic")))]
3compile_error!("at least one of the `conjure` or `tonic` features must be enabled");
4
5// Re-export proto types under `tonic` for backward compatibility with `nominal_api::tonic::...`
6#[cfg(feature = "tonic")]
7pub mod tonic {
8    pub use nominal_api_proto::*;
9}
10
11#[cfg(feature = "conjure")]
12pub use nominal_api_conjure::*;