From b80610516527ae3969196fa230965d2782d4947c Mon Sep 17 00:00:00 2001 From: expl Date: Tue, 13 Jan 2026 14:47:36 +0900 Subject: [PATCH 1/3] Allow to optimize loading GCP project ID from env if pressent --- lib/src/credentials/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/src/credentials/mod.rs b/lib/src/credentials/mod.rs index f7fa1dc..50c967f 100644 --- a/lib/src/credentials/mod.rs +++ b/lib/src/credentials/mod.rs @@ -7,6 +7,7 @@ use google_cloud_auth::credentials::{CacheableResource, Credentials}; use headers::HeaderMapExt; use headers::{Header, HeaderName, HeaderValue}; use http::{Extensions, HeaderMap}; +use std::env::var; #[derive(thiserror::Error, Debug, Clone)] #[error("Failed to extract GCP credentials")] @@ -49,6 +50,10 @@ impl Header for GoogleUserProject { pub(crate) async fn get_project_id( creds: &Credentials, ) -> Result> { + if let Ok(project_id) = var("GOOGLE_CLOUD_PROJECT") { + return Ok(project_id); + } + let headers = get_headers(creds).await?; let user_project: GoogleUserProject = headers From ccd1044636f52d5a50472fe0b988222ee6914680 Mon Sep 17 00:00:00 2001 From: expl Date: Tue, 13 Jan 2026 14:48:53 +0900 Subject: [PATCH 2/3] Bump to 4.1.1 --- lib/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cargo.toml b/lib/Cargo.toml index f41c00d..fca1ee3 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rs-firebase-admin-sdk" -version = "4.1.0" +version = "4.1.1" rust-version = "1.85" edition = "2024" authors = ["Kostas Petrikas"] From c004491c37e193680ab7cd80bf61f9c2e3a81149 Mon Sep 17 00:00:00 2001 From: expl Date: Tue, 13 Jan 2026 14:51:16 +0900 Subject: [PATCH 3/3] Bump min Rust to 1.88 --- docker/Dockerfile | 2 +- lib/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 36526c2..a2d4600 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.85 +FROM rust:1.88 RUN rustup update RUN rustup component add clippy diff --git a/lib/Cargo.toml b/lib/Cargo.toml index fca1ee3..85d4841 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "rs-firebase-admin-sdk" version = "4.1.1" -rust-version = "1.85" +rust-version = "1.88" edition = "2024" authors = ["Kostas Petrikas"] categories = ["authentication", "api-bindings", "asynchronous"]