Skip to content

Commit

Permalink
fix: Accommodate partial features build (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega authored Jun 21, 2022
1 parent dbf2798 commit 5a946ac
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ cloud-pubsub = { version = "0.8.0", optional = true }

[features]
default = []
web = ["reqwest"]
logs = ["file-rotate"]
webhook = ["reqwest"]
webhook = ["web"]
kafkasink = ["kafka", "openssl"]
elasticsink = ["elasticsearch", "tokio"]
fingerprint = ["murmur3"]
aws = ["aws-config", "aws-sdk-sqs", "aws-sdk-lambda", "aws-sdk-s3", "tokio"]
redissink = ["redis", "tokio"]
gcp = ["cloud-pubsub", "tokio", "reqwest"]
gcp = ["cloud-pubsub", "tokio", "web"]
2 changes: 2 additions & 0 deletions src/sinks/common/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#[cfg(feature = "web")]
pub mod web;
File renamed without changes.
2 changes: 1 addition & 1 deletion src/sinks/gcp_cloudfunction/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use serde::Deserialize;

use crate::{
pipelining::{BootstrapResult, SinkProvider, StageReceiver},
sinks::{build_headers_map, request_loop, ErrorPolicy, APP_USER_AGENT},
sinks::common::web::{build_headers_map, request_loop, ErrorPolicy, APP_USER_AGENT},
utils::{retry, WithUtils},
};

Expand Down
2 changes: 1 addition & 1 deletion src/sinks/gcp_pubsub/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use serde_json::json;
use crate::{
model::Event,
pipelining::StageReceiver,
sinks::ErrorPolicy,
sinks::common::web::ErrorPolicy,
utils::{retry, Utils},
};

Expand Down
2 changes: 1 addition & 1 deletion src/sinks/gcp_pubsub/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use serde::Deserialize;

use crate::{
pipelining::{BootstrapResult, SinkProvider, StageReceiver},
sinks::ErrorPolicy,
sinks::common::web::ErrorPolicy,
utils::{retry, WithUtils},
};

Expand Down
2 changes: 1 addition & 1 deletion src/sinks/webhook/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use serde::Deserialize;

use crate::{
pipelining::{BootstrapResult, SinkProvider, StageReceiver},
sinks::{build_headers_map, request_loop, ErrorPolicy, APP_USER_AGENT},
sinks::common::web::{build_headers_map, request_loop, ErrorPolicy, APP_USER_AGENT},
utils::{retry, WithUtils},
};

Expand Down

0 comments on commit 5a946ac

Please sign in to comment.