[dependencies.futures-core]
optional = true
version = "0.3.31"
[dependencies.futures-util]
optional = true
version = "0.3.31"
[dependencies.tokio]
features = ["sync", "rt"]
optional = true
version = "1"
[dev-dependencies.tokio]
features = ["macros", "rt"]
version = "1"
[features]
blocking = []
default = ["tokio"]
tokio = ["dep:tokio", "dep:futures-core", "dep:futures-util"]
[lib]
name = "picopub"
path = "src/lib.rs"
[lints.clippy]
dbg_macro = "deny"
expect_used = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
panic = "deny"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"
[package]
authors = ["Alejandro Llanes <>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["concurrency", "data-structures"]
description = "A sync/async pub-sub library with bounded queues and backpressure using Mutex and Condvar"
documentation = "https://docs.rs/picopub"
edition = "2024"
keywords = ["pubsub", "concurrency", "sync", "async", "backpressure"]
license = "MIT OR Apache-2.0"
name = "picopub"
readme = "README.md"
repository = "https://github.com/alejandro-llanes/picopub"
version = "0.1.1"
[[test]]
name = "async_tests"
path = "tests/async_tests.rs"
[[test]]
name = "blocking_tests"
path = "tests/blocking_tests.rs"