Skip to content

Commit

Permalink
cleanup features
Browse files Browse the repository at this point in the history
Signed-off-by: Heinz Gies <[email protected]>
  • Loading branch information
Licenser committed Sep 26, 2024
1 parent d12003c commit 6b97a00
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 6 deletions.
46 changes: 46 additions & 0 deletions Cargo.lock

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

29 changes: 23 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,36 @@ doctest = false
all-features = true

[dependencies]
prost = { version = "0.13" }
tokio = { version = "1.40.0", features = ["sync"], optional = true }
tonic = { version = "0.12", features = ["gzip", "tls", "tls-webpki-roots"] }
prost = { version = "0.13", default-features = false, features = [
"std",
"derive",
] }
tokio = { version = "1.40.0", optional = true, default-features = false, features = [
"sync",
] }
tonic = { version = "0.12", default-features = false, features = [
"transport",
"codegen",
"prost",
] }

[build-dependencies]
tonic-build = { version = "0.12" }

[features]

# Default - all
default = ["otel-all"]
default = ["otel-all", "gzip", "zstd", "tls"]

# Enable channel abstraction
channels = ["dep:tokio"]

# Enable gzip compression support
gzip = ["tonic/gzip"]
# Enable zstd compression support
zstd = ["tonic/zstd"]
# Enable tls support
tls = ["tonic/tls", "tonic/tls-webpki-roots"]

# Generated from .proto definitions
opentelemetry-proto-collector-logs-v1 = []
Expand Down Expand Up @@ -87,5 +106,3 @@ otel-trace = [
"opentelemetry-proto-trace-v1",
"opentelemetry-proto-collector-trace-v1",
]

channels = ["dep:tokio"]

0 comments on commit 6b97a00

Please sign in to comment.