Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions crates/flagsmith/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand All @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion crates/flagsmith/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -104,7 +105,7 @@ pub struct FlagsmithOptions {
pub api_url: Option<String>,

/// Custom HTTP headers
pub custom_headers: Option<reqwest::header::HeaderMap>,
pub custom_headers: Option<HeaderMap>,

/// Request timeout in seconds
pub request_timeout_seconds: Option<u64>,
Expand Down
1 change: 0 additions & 1 deletion crates/flagsmith/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Loading