[package] name = "hive_pubsub" description = "Generic Pub/Sub library." version = "0.5.0" authors = ["Paul Makles "] edition = "2018" license = "MIT" repository = "https://gitlab.insrt.uk/insert/hive" readme = "README.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] default = [ ] test = [ "mongo-backend", "dotenv", "tokio", "mongodb/tokio-runtime", "redis/tokio-comp", "async-std" ] mongo-backend = [ "mongodb", "core" ] redis-backend = [ "redis", "redis/aio", "mobc", "mobc-redis", "core" ] core = [ "ulid", "serde", "serde_json", "futures" ] [dependencies] many-to-many = "0.1.2" ulid = { version = "0.4.0", optional = true } serde = { version = "1.0.115", optional = true } dotenv = { version = "0.15.0", optional = true } futures = { version = "0.3.8", optional = true } serde_json = { version = "1.0.57", optional = true } mongodb = { version = "1.2.2", default-features = false, optional = true } tokio = { version = "0.2", features = ["macros", "test-util"], optional = true } redis = { version = "0.21.2", optional = true } mobc = { version = "0.7.3", optional = true } mobc-redis = { version = "0.7.0", optional = true } async-std = { version = "1.10.0", features = ["attributes", "tokio1", "tokio02"], optional = true } [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"]