Skip to content

Commit

Permalink
make external libs optional
Browse files Browse the repository at this point in the history
Signed-off-by: Kirill Fomichev <fanatid@ya.ru>
  • Loading branch information
fanatid committed Feb 9, 2021
1 parent 16ed771 commit 6ba9005
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 33 deletions.
6 changes: 0 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 21 additions & 27 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ anyhow = "1.0.37"
async-compression = { version = "0.3.7", features = ["tokio-02", "gzip", "zstd"] }
avro-rs = { version = "0.12.0", optional = true }
base64 = { version = "0.13.0", optional = true }
bloom = "0.3.2"
bloom = { version = "0.3.2", optional = true }
bollard = { version = "0.9.1", features = ["ssl"], optional = true }
bytes = { version = "0.5.6", features = ["serde"] }
bytesize = { version = "1.0.0", optional = true }
Expand All @@ -154,14 +154,13 @@ dyn-clone = "1.0.3"
encoding_rs = { version = "0.8", features = ["serde"] }
evmap = { version = "10.0.2", features = ["bytes"], optional = true }
exitcode = "1.1.2"
fakedata_generator = "0.2.4"
fakedata_generator = { version = "0.2.4", optional = true }
flate2 = "1.0.19"
getset = "0.1.1"
glob = "0.3.0"
grok = "~1.0.1"
grok = { version = "~1.0.1", optional = true }
headers = "0.3"
heim = { version = "0.1.0-rc.1", optional = true, features = ["full"] }
hex = "0.4.2"
heim = { version = "0.1.0-rc.1", features = ["full"], optional = true }
hostname = "0.3.1"
http = "0.2"
hyper = "0.13"
Expand All @@ -175,9 +174,8 @@ lazy_static = "1.3.0"
leveldb = { version = "0.8", optional = true, default-features = false }
listenfd = { version = "0.3.3", optional = true }
logfmt = { version = "0.0.2", optional = true }
lru = "0.6.3"
lru = { version = "0.6.3", optional = true }
maxminddb = { version = "0.17.0", optional = true }
md-5 = "0.9"
mongodb = { version = "1.1.1", optional = true }
nats = { version = "0.8.6", optional = true }
nom = { version = "6.0.1", optional = true }
Expand All @@ -197,28 +195,24 @@ rand_distr = "0.4.0"
rdkafka = { version = "0.24.0", features = ["libz", "ssl", "zstd"], optional = true }
regex = "1.3.9"
rlua = { git = "https://github.com/kyren/rlua", rev = "25bd7e6bffef9597466a98bfca80a3056c9e6320", optional = true }
rust_decimal = "1.8.1"
seahash = { version = "4.0.1", optional = true }
semver = { version = "0.11.0", features = ["serde"] }
sha-1 = "0.9.2"
sha2 = "0.9"
sha3 = "0.9"
semver = { version = "0.11.0", features = ["serde"], optional = true }
snafu = { version = "0.6.10", features = ["futures", "futures-01"] }
snap = { version = "1.0.3", optional = true }
socket2 = { version = "0.3.19", optional = true }
stream-cancel = "0.6.2"
strip-ansi-escapes = { version = "0.1.0"}
strip-ansi-escapes = "0.1.0"
structopt = "0.3.21"
syslog = "5"
syslog_loose = "0.10.0"
syslog = { version = "5", optional = true }
syslog_loose = { version = "0.10.0", optional = true }
# Indirect dependency; pinning until
# https://github.com/timberio/vector/issues/6005 is resolved
thread_local = "= 1.0.1"
tokio-postgres = { version = "0.5.5", optional = true, features = ["runtime", "with-chrono-0_4"] }
tokio-postgres = { version = "0.5.5", features = ["runtime", "with-chrono-0_4"], optional = true }
toml = "0.5.8"
typetag = "0.1.6"
url = "2.2.0"
uuid = { version = "0.8", features = ["serde", "v4"] }
uuid = { version = "0.8", features = ["serde", "v4"], optional = true }
warp = { version = "0.2.5", default-features = false, optional = true }

# For WASM
Expand Down Expand Up @@ -366,7 +360,7 @@ sources-metrics = [
sources-apache_metrics = []
sources-aws_ecs_metrics = []
sources-aws_kinesis_firehose = ["base64", "sources-utils-tls", "warp"]
sources-aws_s3 = ["rusoto", "rusoto_s3", "rusoto_sqs"]
sources-aws_s3 = ["rusoto", "rusoto_s3", "rusoto_sqs", "semver", "uuid"]
sources-docker_logs = ["bollard", "dirs-next"]
sources-file = ["bytesize", "file-source"]
sources-generator = ["sources-utils-fake"]
Expand All @@ -386,8 +380,8 @@ sources-socket = ["bytesize", "listenfd", "tokio-util/udp", "sources-utils-udp",
sources-splunk_hec = ["bytesize", "sources-utils-tls", "warp"]
sources-statsd = ["listenfd", "sources-utils-tcp-keepalive", "sources-utils-tcp-socket", "sources-utils-tls", "sources-utils-udp", "sources-utils-unix", "tokio-util/udp"]
sources-stdin = ["bytesize"]
sources-syslog = ["bytesize", "listenfd", "tokio-util/udp", "sources-utils-udp", "sources-utils-tcp-keepalive", "sources-utils-tcp-socket", "sources-utils-tls", "sources-utils-unix"]
sources-utils-fake = []
sources-syslog = ["bytesize", "listenfd", "tokio-util/udp", "sources-utils-udp", "sources-utils-tcp-keepalive", "sources-utils-tcp-socket", "sources-utils-tls", "sources-utils-unix", "syslog_loose"]
sources-utils-fake = ["fakedata_generator"]
sources-utils-http = ["snap", "sources-utils-tls", "warp"]
sources-utils-tcp-keepalive = []
sources-utils-tcp-socket = []
Expand Down Expand Up @@ -445,11 +439,11 @@ transforms-aws_cloudwatch_logs_subscription_parser= []
transforms-aws_ec2_metadata = ["evmap"]
transforms-coercer = []
transforms-concat = []
transforms-dedupe = []
transforms-dedupe = ["lru"]
transforms-field_filter = []
transforms-filter = []
transforms-geoip = ["maxminddb"]
transforms-grok_parser = []
transforms-grok_parser = ["grok"]
transforms-json_parser = []
transforms-key_value_parser = []
transforms-log_to_metric = []
Expand All @@ -466,7 +460,7 @@ transforms-rename_fields = []
transforms-route = []
transforms-sample = ["seahash"]
transforms-split = []
transforms-tag_cardinality_limit = []
transforms-tag_cardinality_limit = ["bloom"]
transforms-tokenizer = []
transforms-wasm = ["wasm"]

Expand Down Expand Up @@ -520,7 +514,7 @@ sinks-aws_cloudwatch_logs = ["rusoto", "rusoto_logs"]
sinks-aws_cloudwatch_metrics = ["rusoto", "rusoto_cloudwatch"]
sinks-aws_kinesis_firehose = ["rusoto", "rusoto_firehose"]
sinks-aws_kinesis_streams = ["rusoto", "rusoto_kinesis"]
sinks-aws_s3 = ["bytesize", "rusoto", "rusoto_s3"]
sinks-aws_s3 = ["bytesize", "rusoto", "rusoto_s3", "uuid"]
sinks-aws_sqs = ["rusoto", "rusoto_sqs"]
sinks-azure_monitor_logs = ["bytesize"]
sinks-blackhole = []
Expand All @@ -529,17 +523,17 @@ sinks-console = []
sinks-datadog = ["bytesize"]
sinks-elasticsearch = ["bytesize", "rusoto"]
sinks-file = []
sinks-gcp = ["base64", "bytesize", "goauth", "smpl_jwt"]
sinks-gcp = ["base64", "bytesize", "goauth", "smpl_jwt", "uuid"]
sinks-honeycomb = ["bytesize"]
sinks-http = ["bytesize"]
sinks-humio = ["sinks-splunk_hec", "transforms-metric_to_log"]
sinks-influxdb = ["bytesize"]
sinks-kafka = []
sinks-logdna = ["bytesize"]
sinks-loki = ["bytesize"]
sinks-loki = ["bytesize", "uuid"]
sinks-nats = ["nats"]
sinks-new_relic_logs = ["bytesize", "sinks-http"]
sinks-papertrail = []
sinks-papertrail = ["syslog"]
sinks-prometheus = ["snap", "sources-utils-tls"]
sinks-pulsar = ["avro-rs", "pulsar"]
sinks-sematext = ["sinks-elasticsearch", "sinks-influxdb"]
Expand Down

0 comments on commit 6ba9005

Please sign in to comment.