Cargo Features

[dependencies]
sentry = { version = "0.32.0", default-features = false, features = ["backtrace", "contexts", "panic", "anyhow", "debug-images", "log", "slog", "tower", "tower-http", "tower-axum-matched-path", "tracing", "test", "debug-logs", "transport", "reqwest", "curl", "surf-h1", "surf", "ureq", "native-tls", "rustls", "serde_json"] }
default = backtrace, contexts, debug-images, panic, transport

These default features are set whenever sentry is added without default-features = false somewhere in the dependency tree.

backtrace default = sentry-backtrace

default integrations

Enables backtrace of optional sentry-tracing

contexts default = sentry-contexts
panic default = sentry-panic
anyhow = sentry-anyhow

other integrations

debug-images default = sentry-debug-images
log = sentry-log
slog = sentry-slog
tower tower-http? = sentry-tower
tower-http tower-axum-matched-path? = tower

Enables http of sentry-tower

tower-axum-matched-path = tower-http

Enables axum-matched-path of sentry-tower

tracing = sentry-tracing
test

other features

Enables test of sentry-core

debug-logs

Enables log, debug-logs of sentry-core

transport default = native-tls, reqwest

transports

reqwest transport = httpdate, tokio

Affects transports::HttpTransport

curl = httpdate

Affects transports::HttpTransport

surf-h1 = httpdate

Enables h1-client of surf

surf = http-client, httpdate, isahc, tokio

With curl-client

Affects transports::HttpTransport

ureq = httpdate

Affects transports::HttpTransport

native-tls transport

transport settings

Enables native-tls, default-tls of optional reqwest, native-tls of optional ureq

rustls = webpki-roots

Enables rustls ^0.21.2, rustls-tls of optional reqwest, tls of optional ureq

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

sentry-anyhow anyhow?

With default (backtrace)

sentry-backtrace backtrace
sentry-contexts contexts
sentry-debug-images debug-images
sentry-log log?
sentry-panic panic
sentry-slog slog?
sentry-tower tower?
httpdate curl? reqwest? surf? surf-h1? ureq?
http-client surf?

With default features

isahc surf?

Enables default features of isahc ^0.9.14

serde_json implicit feature

With default (std)

tokio reqwest? surf?

With rt

webpki-roots rustls?

Enables webpki-roots ^0.25.1