[package]
edition = "2021"
name = "photon-backend"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Photon publish/subscribe backend implementations and storage adapters"
homepage = "https://github.com/unified-field-dev/photon"
documentation = "https://docs.rs/photon-backend"
readme = "README.md"
keywords = [
"pubsub",
"events",
"async",
"messaging",
"streaming",
]
categories = [
"asynchronous",
"network-programming",
]
license = "MIT"
repository = "https://github.com/unified-field-dev/photon"
[package.metadata.docs.rs]
all-features = true
[features]
default = []
mem = ["runtime"]
runtime = [
"dep:tokio",
"dep:thiserror",
"dep:anyhow",
"dep:async-trait",
"dep:futures",
"dep:async-stream",
"dep:uuid",
"dep:chrono",
"dep:chacha20poly1305",
"dep:rand_core",
"dep:zeroize",
"dep:base64",
"dep:dashmap",
]
[lib]
name = "photon_backend"
path = "src/lib.rs"
[[test]]
name = "checkpoint_regression"
path = "tests/checkpoint_regression.rs"
[[test]]
name = "retention_no_checkpoint"
path = "tests/retention_no_checkpoint.rs"
[[test]]
name = "retention_reclaim"
path = "tests/retention_reclaim.rs"
[[test]]
name = "topic_not_found"
path = "tests/topic_not_found.rs"
[[bench]]
name = "dispatch_stub"
path = "benches/dispatch_stub.rs"
harness = false
required-features = ["runtime"]
[[bench]]
name = "envelope_crypto"
path = "benches/envelope_crypto.rs"
harness = false
required-features = ["runtime"]
[[bench]]
name = "shard_routing"
path = "benches/shard_routing.rs"
harness = false
required-features = ["runtime"]
[dependencies.anyhow]
version = "1"
optional = true
[dependencies.async-stream]
version = "0.3"
optional = true
[dependencies.async-trait]
version = "0.1"
optional = true
[dependencies.base64]
version = "0.22"
optional = true
[dependencies.chacha20poly1305]
version = "0.10"
optional = true
[dependencies.chrono]
version = "0.4"
features = ["serde"]
optional = true
[dependencies.dashmap]
version = "6"
optional = true
[dependencies.futures]
version = "0.3"
optional = true
[dependencies.photon-core]
version = "0.1.0"
package = "uf-photon-core"
[dependencies.photon-telemetry]
version = "0.1.0"
[dependencies.quark]
version = "0.1.1"
package = "uf-quark"
[dependencies.rand_core]
version = "0.6"
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0.12"
optional = true
[dependencies.tokio]
version = "1.52"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
]
optional = true
[dependencies.uuid]
version = "1.11"
features = ["v4"]
optional = true
[dependencies.zeroize]
version = "1"
optional = true
[dev-dependencies.criterion]
version = "0.5"
features = ["async_tokio"]
[dev-dependencies.futures]
version = "0.3"
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.serial_test]
version = "3"
[dev-dependencies.tokio]
version = "1.52"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
"rt-multi-thread",
"macros",
"time",
]
[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
items_after_statements = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
type_complexity = "allow"
used_underscore_binding = "allow"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "deny"