diff --git a/Cargo.toml b/Cargo.toml index 939d4ea..95c8425 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,6 +28,6 @@ typed-builder = "0.18.0" spec = { path = "spec" } [features] -default = [ "mockall" ] -mockall = [ "dep:mockall" ] +default = [ "test-util" ] +test-util = [ "dep:mockall" ] serde_json = [ "dep:serde_json" ] \ No newline at end of file diff --git a/src/provider/feature_provider.rs b/src/provider/feature_provider.rs index 31c68a1..c1019c8 100644 --- a/src/provider/feature_provider.rs +++ b/src/provider/feature_provider.rs @@ -21,7 +21,7 @@ use super::ResolutionDetails; /// vendor SDK, embed an REST client, or read flags from a local file. /// /// See the [spec](https://openfeature.dev/specification/sections/providers). -#[cfg_attr(feature = "mockall", mockall::automock)] +#[cfg_attr(feature = "test-util", mockall::automock)] #[async_trait] pub trait FeatureProvider: Send + Sync + 'static { /// The provider MAY define an initialize function which accepts the global evaluation