Cargo Features

[dependencies]
event-sourcing = { version = "0.1.20", default-features = false, features = ["std", "postgres", "pubsub", "in_memory", "serde", "prometheus", "amqp", "amqp-tls"] }
default = in_memory, std

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

std default amqp? in_memory postgres? pubsub?

Enables std of snafu and tracing

snafu:

Implement the std::error::Error trait.

postgres = serde, std

Enables bb8, bb8-postgres, and tokio-postgres

Affects adapter::postgres

pubsub = serde, std

Enables google-cloud-googleapis, google-cloud-pubsub, and prost-types

Affects adapter::pubsub

in_memory default = std

Enables tokio-stream

Affects adapter::in_memory

serde postgres? pubsub?

Enables serde and serde_json, serde of chrono, serde of uuid

prometheus

Enables lazy_static and prometheus

amqp amqp-tls? = std

Enables lapin, serde, serde_json, tokio-executor-trait, and tokio-reactor-trait

Affects adapter::amqp

amqp-tls = amqp

Enables rustls of lapin