[package]
edition = "2021"
name = "photon-runtime"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Photon runtime builder and process-wide configuration"
homepage = "https://github.com/unified-field-dev/photon"
documentation = "https://docs.rs/photon-runtime"
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 = [
"photon-backend/mem",
"runtime",
]
runtime = [
"photon-backend/runtime",
"dep:futures",
"dep:anyhow",
"dep:tokio",
"dep:tracing",
"dep:tokio-util",
]
[lib]
name = "photon_runtime"
path = "src/lib.rs"
[dependencies.anyhow]
version = "1"
optional = true
[dependencies.futures]
version = "0.3"
optional = true
[dependencies.photon-backend]
version = "0.1.0"
default-features = false
[dependencies.photon-core]
version = "0.1.0"
package = "uf-photon-core"
[dependencies.photon-telemetry]
version = "0.1.0"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.tokio]
version = "1.52"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
]
optional = true
[dependencies.tokio-util]
version = "0.7"
features = ["rt"]
optional = true
[dependencies.tracing]
version = "0.1"
optional = true
[dev-dependencies.tokio]
version = "1.52"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
"rt-multi-thread",
"macros",
]
[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"