# 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.92"
name = "beyond-slipstream"
version = "0.7.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Watchable distributed config over NATS JetStream — cache locally, stream updates, resume from a sequence number after any restart."
readme = "README.md"
license = "MIT"
resolver = "2"

[features]
fjall = ["dep:fjall"]
rocksdb = ["dep:rocksdb"]
transport = [
    "dep:object_store",
    "dep:tar",
    "tokio/fs",
]

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

[[test]]
name = "bootstrap"
path = "tests/bootstrap.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"

[[test]]
name = "model"
path = "tests/model.rs"

[[test]]
name = "model_applied"
path = "tests/model_applied.rs"

[[test]]
name = "model_live_watch"
path = "tests/model_live_watch.rs"

[[test]]
name = "model_resync_order"
path = "tests/model_resync_order.rs"

[[test]]
name = "multi_export"
path = "tests/multi_export.rs"

[[test]]
name = "resync"
path = "tests/resync.rs"

[[test]]
name = "snapshot_store"
path = "tests/snapshot_store.rs"

[[test]]
name = "transport"
path = "tests/transport.rs"

[[test]]
name = "transport_s3"
path = "tests/transport_s3.rs"

[[bench]]
name = "ack"
path = "benches/ack.rs"
harness = false

[[bench]]
name = "applied"
path = "benches/applied.rs"
harness = false

[[bench]]
name = "snapshot"
path = "benches/snapshot.rs"
harness = false

[[bench]]
name = "snapshot_backends"
path = "benches/snapshot_backends.rs"
harness = false
required-features = [
    "fjall",
    "rocksdb",
]

[dependencies.aho-corasick]
version = "1"

[dependencies.async-nats]
version = "0.46"

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

[dependencies.base64]
version = "0.22"

[dependencies.blake3]
version = "1.8.5"

[dependencies.crc32fast]
version = "1"

[dependencies.fjall]
version = "3"
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.object_store]
version = "0.13.2"
features = [
    "aws",
    "fs",
]
optional = true

[dependencies.rocksdb]
version = "0.50"
features = [
    "lz4",
    "zstd",
    "bindgen-runtime",
]
optional = true
default-features = false
package = "rust-rocksdb"

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

[dependencies.serde_json]
version = "1"

[dependencies.tar]
version = "0.4.46"
optional = true

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
    "sync",
    "time",
]

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2"

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.stateright]
version = "0.31.0"

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