[package]
name = "pikav"
version = "0.15.2"
edition = "2021"
license = "Apache-2.0"
description = "A library that help you send event to client with topic subscription"
repository = "https://github.com/timada-org/pikav"
homepage = "https://pikav.timada.co"
documentation = "https://docs.rs/pikav"

[dependencies]
thiserror = { version = "1.0.40" }
regex = { version = "1.7.3" }
lazy_static = { version = "1.4.0" }
tokio = { version = "1.27.0", features = ["full"], optional = true }
nanoid = { version = "0.4.0", optional = true }
serde = { version = "1.0.160", features = ["derive"] }
serde_json = { version = "1.0.96", optional = true }

[features]
event = []
publisher = [
	"dep:nanoid",
	"dep:tokio",
	"dep:serde_json",
	"event",
]
