[package] name = "timesource" version = "0.1.3" edition = "2021" description = "Event sourcing with TimescaleDb" license = "MIT" authors = ["J3A Solutions Ltd."] homepage = "https://gitlab.com/j3a-solutions/timesource" repository = "https://gitlab.com/j3a-solutions/timesource" categories = ["data-structures", "database"] keywords = ["event-sourcing", "cqrs", "timescaledb"] readme = "README.md" include = [ "**/*.rs", "Cargo.toml", "../LICENSE", "migrations", "queries", "sqlx-data.json" ] [dependencies] async-trait = "0.1.51" backoff = { version = "0.4.0", features = ["tokio"] } cfg-if = "1.0.0" chrono = { version = "0.4.19", default-features = false } data-encoding = { version = "2.3.2", optional = true } heapless = { version = "0.7.8", default-features = false } timesource-core = { version = "0.1.3", path = "../core" } timesource-derive = { version = "0.1.3", path = "../derive" } futures = { version = "0.3.17", default-features = false } lazy_static = { version = "1.4.0", optional = true } # https://github.com/launchbadge/sqlx/issues/1389 was merged into 0.5.9 # but then https://github.com/launchbadge/sqlx/pull/1501 happened. Waiting for 0.5.10 # sqlx = { version = "0.5.7", features = ["runtime-tokio-rustls", "postgres", "uuid", "chrono", "macros", "json"]} sqlx = { git = "https://github.com/launchbadge/sqlx.git", version = "0.5.7", features = ["runtime-tokio-rustls", "postgres", "uuid", "chrono", "macros", "json", "offline"]} thiserror = "1.0.29" tokio = { version = "1", default-features = false, features = ["macros", "rt-multi-thread", "sync"] } tokio-stream = "0.1.8" tracing = "0.1" uuid = { version = "0.8", features= ["v4"] } [dev-dependencies] gabble = "0.1.1" mockall = "0.10.2" minicbor = { version = "0.12.0", features = ["std", "derive"] } rand = "0.8.4" serde = {version = "1.0" } serde_json = { version = "1.0" } test-case = "1.2.0" tracing-subscriber = { version = "0.3", features = ["env-filter"]} [features] default = ["json"] # Enable all supported encodings all = ["json", "cbor", "protobuf"] # Feature used by binary formats binary = ["data-encoding", "lazy_static", "timesource-core/data-encoding"] # Provide support for encoding and decoding using minicbor cbor = ["binary", "timesource-core/cbor"] # Provide support for serde with JSON. json = ["timesource-core/json"] # Provide support for encoding and decoding using protobuf and prost protobuf = ["binary", "timesource-core/protobuf"]