[package]
edition = "2021"
name = "uf-photon"
version = "0.1.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pub/sub event pipeline facade — composable storage adapters"
homepage = "https://github.com/unified-field-dev/photon"
documentation = "https://docs.rs/uf-photon"
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 = []
fluvio = [
"mem",
"dep:photon-backend-fluvio",
]
kafka = [
"mem",
"dep:photon-backend-kafka",
]
mem = [
"photon-backend/mem",
"photon-runtime/mem",
]
nats = [
"mem",
"dep:photon-backend-nats",
]
runtime = [
"dep:photon-backend",
"dep:photon-runtime",
"mem",
"photon-backend/runtime",
"photon-runtime/runtime",
]
sqlite = [
"mem",
"dep:photon-backend-sqlite",
]
[lib]
name = "photon"
path = "src/lib.rs"
[[example]]
name = "consumer_group"
path = "examples/consumer_group.rs"
required-features = [
"runtime",
"mem",
]
[[example]]
name = "embedded_mem"
path = "examples/embedded_mem.rs"
required-features = [
"runtime",
"mem",
]
[[example]]
name = "keyed_topic"
path = "examples/keyed_topic.rs"
required-features = [
"runtime",
"mem",
]
[[example]]
name = "manual_subscribe"
path = "examples/manual_subscribe.rs"
required-features = [
"runtime",
"mem",
]
[[example]]
name = "subscribe_v2"
path = "examples/subscribe_v2.rs"
required-features = [
"runtime",
"mem",
]
[[example]]
name = "telemetry_ops_log"
path = "examples/telemetry_ops_log.rs"
required-features = [
"runtime",
"mem",
]
[dependencies.photon-backend]
version = "0.1.0"
optional = true
default-features = false
[dependencies.photon-backend-fluvio]
version = "0.1.0"
optional = true
[dependencies.photon-backend-kafka]
version = "0.1.0"
optional = true
[dependencies.photon-backend-nats]
version = "0.1.0"
optional = true
[dependencies.photon-backend-sqlite]
version = "0.1.0"
optional = true
[dependencies.photon-core]
version = "0.1.0"
package = "uf-photon-core"
[dependencies.photon-macros]
version = "0.1.0"
[dependencies.photon-runtime]
version = "0.1.0"
optional = true
default-features = false
[dependencies.photon-telemetry]
version = "0.1.0"
[dependencies.quark]
version = "0.1.1"
package = "uf-quark"
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.futures]
version = "0.3"
[dev-dependencies.photon-backend]
version = "0.1.0"
features = [
"mem",
"runtime",
]
default-features = false
[dev-dependencies.photon-runtime]
version = "0.1.0"
features = [
"mem",
"runtime",
]
default-features = false
[dev-dependencies.serde]
version = "1.0"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.tokio]
version = "1.52"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
"rt-multi-thread",
"macros",
"time",
]
[dev-dependencies.tracing]
version = "0.1"
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[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"