# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.90"
name = "atproto-jetstream"
version = "0.14.4"
authors = ["Nick Gerakines <nick.gerakines@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "AT Protocol Jetstream event consumer library with WebSocket streaming and compression support"
homepage = "https://tangled.org/ngerakines.me/atproto-crates"
documentation = "https://docs.rs/atproto-jetstream"
readme = "README.md"
keywords = ["atprotocol"]
categories = [
    "command-line-utilities",
    "web-programming",
]
license = "MIT"
repository = "https://tangled.org/ngerakines.me/atproto-crates"

[features]
clap = [
    "dep:clap",
    "dep:tracing-subscriber",
    "tokio/signal",
]
default = ["hickory-dns"]
hickory-dns = ["atproto-identity/hickory-dns"]

[lib]
name = "atproto_jetstream"
path = "src/lib.rs"

[[bin]]
name = "atproto-jetstream-consumer"
path = "src/bin/atproto-jetstream-consumer.rs"
test = false
bench = false
doc = true
required-features = ["clap"]

[dependencies.anyhow]
version = "1.0"

[dependencies.async-trait]
version = "0.1"

[dependencies.atproto-identity]
version = "0.14.4"

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "env",
]
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.http]
version = "1.3"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"
features = ["unbounded_depth"]

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.41"
features = [
    "macros",
    "rt",
    "rt-multi-thread",
    "sync",
    "time",
]

[dependencies.tokio-util]
version = "0.7"

[dependencies.tokio-websockets]
version = "0.13"
features = [
    "client",
    "rustls-native-roots",
    "fastrand",
    "ring",
]

[dependencies.tracing]
version = "0.1"
features = ["async-await"]

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
optional = true

[dependencies.urlencoding]
version = "2.1"

[dependencies.zstd]
version = "0.13"

[lints.rust]
unsafe_code = "forbid"
