# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2018" rust-version = "1.74.0" name = "esrs" version = "0.17.1" authors = ["Simone Cottini "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A Prima.it-opinionated library to achieve cqrs/es" readme = "README.md" keywords = [ "architecture", "ddd", "event-sourcing", "cqrs", "es", ] categories = [ "rust-patterns", "web-programming", "asynchronous", "data-structures", ] license = "MIT OR Apache-2.0" repository = "https://github.com/primait/event_sourcing.rs" [package.metadata.docs.rs] all-features = true [lib] name = "esrs" path = "src/lib.rs" [[example]] name = "aggregate_deletion" path = "examples/aggregate_deletion/main.rs" required-features = ["postgres"] [[example]] name = "event_bus" path = "examples/event_bus/main.rs" required-features = [ "postgres", "rabbit", "kafka", ] [[example]] name = "eventual_view" path = "examples/eventual_view/main.rs" required-features = ["postgres"] [[example]] name = "locking_strategies" path = "examples/locking_strategies/main.rs" required-features = ["postgres"] [[example]] name = "multi_aggregate_rebuild" path = "examples/multi_aggregate_rebuild/main.rs" required-features = ["postgres"] [[example]] name = "readme" path = "examples/readme/main.rs" required-features = ["postgres"] [[example]] name = "rebuilder" path = "examples/rebuilder/main.rs" required-features = [ "rebuilder", "postgres", ] [[example]] name = "saga" path = "examples/saga/main.rs" required-features = ["postgres"] [[example]] name = "schema" path = "examples/schema/main.rs" [[example]] name = "shared_view" path = "examples/shared_view/main.rs" required-features = ["postgres"] [[example]] name = "store_crud" path = "examples/store_crud/main.rs" required-features = ["postgres"] [[example]] name = "transactional_view" path = "examples/transactional_view/main.rs" required-features = ["postgres"] [[example]] name = "upcasting" path = "examples/upcasting/main.rs" required-features = [ "postgres", "upcasting", ] [[test]] name = "lib" path = "tests/lib.rs" [dependencies.async-trait] version = "0.1.50" [dependencies.bb8] version = "0.8.1" [dependencies.chrono] version = "0.4" features = ["serde"] [dependencies.futures] version = "0.3" [dependencies.lapin] version = "2.1.1" optional = true [dependencies.ouroboros] version = "0.18" [dependencies.rdkafka] version = "0.35.*" features = ["ssl-vendored"] optional = true [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.serde_json] version = "1.0" [dependencies.sqlx] version = "0.8.0" features = [ "runtime-tokio-native-tls", "uuid", "json", "chrono", ] optional = true [dependencies.thiserror] version = "1.0" [dependencies.tokio] version = "1.6" optional = true [dependencies.tracing] version = "0.1" [dependencies.typed-builder] version = "0.18.0" optional = true [dependencies.uuid] version = "1.1" features = [ "serde", "v4", ] [dev-dependencies.rand] version = "0.8" [dev-dependencies.tokio] version = "1.6" features = ["full"] [features] default = [] kafka = [ "rdkafka", "typed-builder", ] postgres = [ "sqlx", "sqlx/postgres", "typed-builder", "tokio", ] rabbit = [ "lapin", "typed-builder", ] rebuilder = [] upcasting = []