[package]
name = "blueprint-producers-extra"
version = "0.2.0-alpha.5"
description = "Additional job call producers for the Blueprint SDK"
authors.workspace = true
edition.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
rust-version.workspace = true

[lints]
workspace = true

[dependencies]
blueprint-core = { workspace = true }
document-features = { workspace = true, features = ["default"] }
futures = { workspace = true }

# Cron
chrono = { workspace = true, optional = true }
tokio-cron-scheduler = { workspace = true, optional = true }
tokio = { workspace = true, optional = true }

[dev-dependencies]
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }

[features]
default = ["std"]

#! By default, no producers will be available. You can enable them with their respective feature flags.

#! ### Core

## Enable standard library support. Currently unused
std = []

## Enable [tracing] support
##
## [tracing]: https://crates.io/crates/tracing
tracing = ["blueprint-core/tracing"]

#! ### Extra producers

## A cron job producer
cron = ["dep:tokio-cron-scheduler", "dep:chrono", "dep:tokio", "std"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
