Skip to content

Commit

Permalink
refactor: revisit feature flag naming & grouping (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega authored May 4, 2024
1 parent 0e41932 commit 5758ec9
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 168 deletions.
30 changes: 10 additions & 20 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,14 @@ authors = ["Santiago Carmuega <[email protected]>"]
[features]
deno = ["deno_runtime"]
wasm = ["extism"]
sink-file-rotate = ["file-rotate"]
sink-webhook = ["reqwest"]
sink-rabbitmq = ["lapin"]
sink-kafka = ["kafka"]
sink-aws-sqs = ["aws-config", "aws-types", "aws-sdk-sqs"]
sink-aws-lambda = ["aws-config", "aws-types", "aws-sdk-lambda"]
sink-aws-s3 = ["aws-config", "aws-types", "aws-sdk-s3"]
sink-gcp-pubsub = ["google-cloud-pubsub", "google-cloud-googleapis", "google-cloud-default"]
sink-gcp-cloudfunction = ["reqwest", "jsonwebtoken"]
sink-redis = ["r2d2_redis"]
sink-elasticsearch = ["elasticsearch"]
source-utxorpc = ["tonic", "futures"]
aws = ["aws-config", "aws-types", "aws-sdk-sqs", "aws-sdk-lambda", "aws-sdk-s3"]
sql = ["sqlx"]
gcp = ["google-cloud-pubsub", "google-cloud-googleapis", "google-cloud-default", "jsonwebtoken"]
rabbitmq = ["lapin"]
redis = ["r2d2_redis"]
u5c = ["tonic"]
# elasticsearch = auto feature flag
# kafka = auto feature flag

[dependencies]
# pallas = "0.21.0"
Expand Down Expand Up @@ -60,33 +55,28 @@ lazy_static = "1.4.0"
tracing = "0.1.37"
tracing-subscriber = "0.3.17"
anyhow = "1.0.77"
file-rotate = { version = "0.7.5" }
reqwest = { version = "0.11", features = ["json", "multipart"] }
tokio = { version = "1", features = ["rt", "rt-multi-thread"] }
async-trait = "0.1.68"

elasticsearch = { version = "8.5.0-alpha.1", optional = true }
murmur3 = { version = "0.5.2", optional = true }
openssl = { version = "0.10", optional = true, features = ["vendored"] }
lapin = { version = "2.2.1", optional = true }
reqwest = { version = "0.11", features = ["json", "multipart"], optional = true }
kafka = { version = "0.9.0", optional = true }
google-cloud-pubsub = { version = "0.16.0", optional = true }
google-cloud-googleapis = { version = "0.10.0", optional = true }
google-cloud-default = { version = "0.4.0", optional = true, features = ["pubsub"] }
r2d2_redis = { version = "0.14.0", optional = true }
deno_runtime = { version = "0.126.0", optional = true }
jsonwebtoken = { version = "8.3.0", optional = true }
file-rotate = { version = "0.7.5", optional = true }
tonic = { version = "0.9.2", features = ["tls", "tls-roots"], optional = true }
futures = { version = "0.3.28", optional = true }

# sql
sqlx = { version = "0.7", features = ["runtime-tokio", "tls-native-tls", "any", "sqlite", "postgres"], optional = true }

# aws
aws-config = { version = "^1.1", optional = true }
aws-types = { version = "^1.1", optional = true }
aws-sdk-s3 = { version = "^1.1", optional = true }
aws-sdk-sqs = { version = "^1.1", optional = true }
aws-sdk-lambda = { version = "^1.1", optional = true }

# wasm
extism = { version = "1.2.0", optional = true }
1 change: 0 additions & 1 deletion src/sinks/common/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#[cfg(any(feature = "sink-webhook", feature = "sink-gcp-cloudfunction"))]
pub mod web;
Loading

0 comments on commit 5758ec9

Please sign in to comment.