Skip to content

Commit

Permalink
Put avro dependenciies behind the avro feature flag
Browse files Browse the repository at this point in the history
Turning avro off drops about 50 crates from the default build, so useful
for development, but the code would need to be cleaned up to remove this
from the default features list

See #163
  • Loading branch information
rtyler committed Jan 7, 2024
1 parent d0f1ea3 commit 48e584a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ edition = "2018"
[dependencies]
anyhow = "1"
async-trait = "0.1"
apache-avro = "^0.14"
base64 = "0.13"
bytes = "1"
chrono = "0.4.31"
Expand All @@ -20,7 +19,6 @@ lazy_static = "1"
log = "0"
maplit = "1"
rdkafka = { version = "0.28", features = ["ssl-vendored"] }
schema_registry_converter = { version = "3.1.0", features = ["easy", "json", "avro"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
strum = "0.20"
Expand All @@ -46,13 +44,21 @@ rusoto_s3 = { version = "0.47", default-features = false, features = ["rustls"],
# sentry
sentry = { version = "0.23.0", optional = true }

# avro
apache-avro = { version = "^0.14", optional = true }
schema_registry_converter = { version = "3.1.0", optional = true, features = ["easy", "json", "avro"] }

# azure feature enabled, mostly used for tests
azure_core = { version = "0.18.0", optional = true }
azure_storage = { version = "0.18.0", optional = true }
azure_storage_blobs = { version = "0.18.0", optional = true }

[features]
default = []
default = ["avro"]
avro = [
"apache-avro",
"schema_registry_converter",
]
sentry-ext = ["sentry"]
dynamic-linking = [ "rdkafka/dynamic-linking" ]
azure = [
Expand Down

0 comments on commit 48e584a

Please sign in to comment.