[package] name = "timesource-core" version = "0.1.3" edition = "2021" description = "Core library for timesource" 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" ] [dependencies] chrono = { version = "0.4.19", default-features = false, features = ["std"] } data-encoding = { version = "2.3.2", optional = true } minicbor = { version = "0.12.0", optional = true } prost = {version = "0.9.0", optional = true } serde = {version = "1.0", optional = true } serde_json = { version = "1.0", optional = true } # TODO: using dimfeld fork until https://github.com/launchbadge/sqlx/pull/1501 is merged 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" uuid = "0.8" [features] default = [] # Provide support for encoding and decoding using minicbor cbor = ["data-encoding", "minicbor"] # Provide support for serde with JSON. json = ["serde", "serde_json"] # Provide support for encoding and decoding using protobuf and prost protobuf = ["data-encoding", "prost"]