fn main() -> Result<(), Box<dyn std::error::Error>> {
    // NOTE: Tonic 0.14+ uses tonic_prost_build instead of tonic_build
    tonic_prost_build::configure()
        .build_server(true)
        .build_client(false)
        // Suppress warnings in generated code
        .server_mod_attribute(".", "#[allow(unused_qualifications, missing_docs)]")
        .client_mod_attribute(".", "#[allow(unused_qualifications, missing_docs)]")
        .compile_protos(&["../../proto/fxt_trading.proto"], &["../../proto"])?;
    Ok(())
}
