road-runner-common 0.16.1

Shared Rust utilities for exchange ecosystem backend services.
Documentation
fn main() -> Result<(), Box<dyn std::error::Error>> {
    #[cfg(feature = "governance")]
    {
        println!("cargo:rerun-if-changed=proto/policy_internal.proto");
        tonic_build::configure()
            .build_server(false)
            .build_client(true)
            .compile_protos(&["proto/policy_internal.proto"], &["proto"])?;
    }

    #[cfg(feature = "notification-grpc")]
    {
        println!("cargo:rerun-if-changed=proto/account_internal.proto");
        tonic_build::configure()
            .build_server(false)
            .build_client(true)
            .compile_protos(&["proto/account_internal.proto"], &["proto"])?;
    }

    Ok(())
}