From b1ffba4985b74f45b2913c33c007536aefa80d91 Mon Sep 17 00:00:00 2001 From: tprevot Date: Tue, 11 Aug 2026 10:46:04 +0200 Subject: [PATCH] chore(deps): bump flagsmith sdk to 3.0 Signed-off-by: tprevot --- crates/flagsmith/Cargo.toml | 6 ++---- crates/flagsmith/src/lib.rs | 3 ++- crates/flagsmith/tests/integration_tests.rs | 1 - 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/crates/flagsmith/Cargo.toml b/crates/flagsmith/Cargo.toml index 51ec6c3..c1dd323 100644 --- a/crates/flagsmith/Cargo.toml +++ b/crates/flagsmith/Cargo.toml @@ -16,7 +16,7 @@ keywords = ["openfeature", "feature-flags", "flagsmith"] open-feature = "0.2" # Flagsmith SDK -flagsmith = "2.1" +flagsmith = "3.0" # Async runtime tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros"] } @@ -34,9 +34,7 @@ tracing = "0.1" # URL validation url = "2.5" - -# HTTP client (for HeaderMap type) - must match flagsmith's reqwest version -reqwest = { version = "0.11", default-features = false } +http = "1" # Flagsmith flag engine types (must match flagsmith version) flagsmith-flag-engine = "0.6" diff --git a/crates/flagsmith/src/lib.rs b/crates/flagsmith/src/lib.rs index 19a3a7b..1458a5b 100644 --- a/crates/flagsmith/src/lib.rs +++ b/crates/flagsmith/src/lib.rs @@ -53,6 +53,7 @@ pub mod error; use async_trait::async_trait; use flagsmith::{Flagsmith, FlagsmithOptions as FlagsmithSDKOptions}; use flagsmith_flag_engine::types::{FlagsmithValue, FlagsmithValueType}; +use http::HeaderMap; use open_feature::provider::{FeatureProvider, ProviderMetadata, ResolutionDetails}; use open_feature::{ EvaluationContext, EvaluationContextFieldValue, EvaluationError, EvaluationReason as Reason, @@ -104,7 +105,7 @@ pub struct FlagsmithOptions { pub api_url: Option, /// Custom HTTP headers - pub custom_headers: Option, + pub custom_headers: Option, /// Request timeout in seconds pub request_timeout_seconds: Option, diff --git a/crates/flagsmith/tests/integration_tests.rs b/crates/flagsmith/tests/integration_tests.rs index a6222f6..de035f7 100644 --- a/crates/flagsmith/tests/integration_tests.rs +++ b/crates/flagsmith/tests/integration_tests.rs @@ -3,7 +3,6 @@ use flagsmith_flag_engine::types::{FlagsmithValue, FlagsmithValueType}; use open_feature::provider::FeatureProvider; use open_feature::{EvaluationContext, EvaluationReason as Reason}; use open_feature_flagsmith::{FlagsmithClient, FlagsmithProvider}; -use serde_json; use std::collections::HashMap; use std::sync::Arc;