Skip to content

Commit

Permalink
fix: Add exp feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushjain17 committed Nov 21, 2024
1 parent d825128 commit 068d3d5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions crates/experimentation_platform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ serde_json = { workspace = true }
service_utils = { path = "../service_utils" }
superposition_macros = { path = "../superposition_macros" }
superposition_types = { path = "../superposition_types", features = [
"experimentation",
"result",
"diesel_derives",
] }
Expand Down
5 changes: 3 additions & 2 deletions crates/superposition_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cac_db_config = { path = "../cac_db_config", optional = true }
chrono = { workspace = true }
derive_more = { workspace = true }
diesel = { workspace = true, optional = true }
experimentation_db_config = { path = "../experimentation_db_config" }
experimentation_db_config = { path = "../experimentation_db_config", optional = true }
jsonlogic = { workspace = true }
log = { workspace = true }
regex = { workspace = true }
Expand All @@ -30,11 +30,12 @@ diesel_derives = [
"dep:superposition_derives",
"dep:cac_db_config",
"cac_db_config/diesel_derives",
"experimentation_db_config/diesel_derives",
"experimentation_db_config?/diesel_derives",
]
disable_db_data_validation = []
result = ["dep:diesel", "dep:anyhow", "dep:thiserror", "dep:actix-web"]
server = ["dep:actix-web"]
experimentation = ["dep:experimentation_db_config"]

[lints]
workspace = true
2 changes: 1 addition & 1 deletion crates/superposition_types/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ macro_rules! impl_try_from_map {
feature = "diesel_derives",
derive(AsExpression, FromSqlRow, JsonFromSql, JsonToSql)
)]
#[cfg_attr(feature = "diesel_derives",diesel(sql_type = Json))]
#[cfg_attr(feature = "diesel_derives", diesel(sql_type = Json))]
pub struct Overrides(Map<String, Value>);

impl Overrides {
Expand Down
1 change: 1 addition & 0 deletions crates/superposition_types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ mod config;
mod contextual;
#[cfg(feature = "server")]
pub mod custom_query;
#[cfg(feature = "experimentation")]
pub mod exp_models;
mod overridden;
#[cfg(feature = "result")]
Expand Down

0 comments on commit 068d3d5

Please sign in to comment.