From 0aa66d693a85faed268be50ab8e662cf5516be30 Mon Sep 17 00:00:00 2001 From: Alvaro Bartolome <36760800+alvarobartt@users.noreply.github.com> Date: Thu, 26 Sep 2024 11:41:38 +0200 Subject: [PATCH] Fix build with `--features google` (#2566) * Fix `cargo build --features google` * Add `cargo test --features google` --- .github/workflows/tests.yaml | 3 +++ router/src/server.rs | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 5f00180c..4eeca334 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -58,3 +58,6 @@ jobs: - name: Run Rust tests run: | cargo test + - name: Run Rust tests with google feature + run: | + cargo test --features google diff --git a/router/src/server.rs b/router/src/server.rs index 7f1d746c..cc896f99 100644 --- a/router/src/server.rs +++ b/router/src/server.rs @@ -2029,7 +2029,8 @@ async fn start( #[cfg(feature = "google")] { - use crate::VertexInstance; + use crate::vertex::__path_vertex_compatibility; + use crate::vertex::{VertexInstance, VertexRequest, VertexResponse}; #[derive(OpenApi)] #[openapi(