# 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 = "2021"
rust-version = "1.85"
name = "dittolive-ditto"
version = "4.14.0"
authors = ["Ditto Engineering Team <engineering@ditto.live>"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ditto is a peer to peer cross-platform database that allows mobile, web, IoT and server apps to sync with or without an internet connection."
homepage = "https://www.ditto.live"
documentation = "https://ditto.com/link/docs"
readme = "README.md"
keywords = [
    "sdk",
    "distributed",
    "peer-to-peer",
    "database",
    "bluetooth",
]
categories = [
    "database-implementations",
    "external-ffi-bindings",
    "database",
]
license-file = "LICENSE.md"
resolver = "2"

[features]
default = [
    "timeseries",
    "ffi_sdk/default",
]
experimental = []
experimental-bus = [
    "experimental",
    "dittolive-ditto-base",
    "dittolive-ditto-base/experimental-bus",
    "ffi_sdk/experimental-bus",
]
fs-storage = ["ffi_sdk/fs-storage"]
in-memory-storage = ["ffi_sdk/in-memory-storage"]
timeseries = ["chrono"]

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

[[example]]
name = "bounce_latency_rx"
path = "examples/bounce_latency_rx.rs"

[[example]]
name = "bounce_latency_tx"
path = "examples/bounce_latency_tx.rs"

[[example]]
name = "bus"
path = "examples/bus.rs"
required-features = ["experimental-bus"]

[[example]]
name = "bus_ping"
path = "examples/bus_ping.rs"
required-features = ["experimental-bus"]

[[example]]
name = "bus_pong"
path = "examples/bus_pong.rs"
required-features = ["experimental-bus"]

[[example]]
name = "carsapp"
path = "examples/carsapp.rs"

[[example]]
name = "carsapp_liveview"
path = "examples/carsapp_liveview/main.rs"

[[example]]
name = "carsapp_tui"
path = "examples/carsapp_tui/main.rs"

[[example]]
name = "old_sync_test"
path = "examples/old_sync_test.rs"

[[example]]
name = "sensor"
path = "examples/sensor.rs"

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

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

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

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

[[test]]
name = "bus"
path = "tests/bus.rs"
required-features = ["experimental-bus"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "bus"
path = "benches/bus.rs"
harness = false
required-features = ["experimental-bus"]

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

[dependencies.async_fn_traits]
version = "0.1.1"

[dependencies.base64]
version = "0.22.1"

[dependencies.bytemuck]
version = "1.16.3"
features = ["derive"]

[dependencies.bytes]
version = "1.7"

[dependencies.chrono]
version = "0.4.38"
features = ["now"]
optional = true

[dependencies.dashmap]
version = "6.1"

[dependencies.dittolive-ditto-base]
version = "=4.14.0"
optional = true
default-features = false

[dependencies.dotenvy]
version = "0.15.7"

[dependencies.ext-trait]
version = "1.0.0"

[dependencies.extern-c]
version = "0.1.0"

[dependencies.ffi_sdk]
version = "=4.14.0"
default-features = false
package = "dittolive-ditto-sys"

[dependencies.fs_extra]
version = "1.2"

[dependencies.hashbrown]
version = "0.14.3"

[dependencies.macro_rules_attribute]
version = "0.1.3"

[dependencies.never-say-never]
version = "6.6.666"

[dependencies.rand]
version = "0.8"
features = ["std_rng"]

[dependencies.safer-ffi]
version = "0.2.0-alpha.0"
features = ["tokio"]

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

[dependencies.serde-transcode]
version = "1.1"

[dependencies.serde_bytes]
version = "0.11.15"

[dependencies.serde_cbor]
version = "0.11.1"

[dependencies.serde_json]
version = "1.0.57"

[dependencies.serde_with]
version = "3.2"
features = [
    "base64",
    "chrono_0_4",
]

[dependencies.thiserror]
version = "2.0.9"

[dependencies.to_method]
version = "1.1.0"

[dependencies.tokio]
version = "1.21.2"
features = ["full"]

[dependencies.tracing]
version = "0.1.40"

[dependencies.url]
version = "2.5.4"
features = ["serde"]

[dependencies.uuid]
version = "1.1.2"
features = [
    "serde",
    "v4",
]

[dev-dependencies.anyhow]
version = "1.0.95"

[dev-dependencies.assert_matches]
version = "1.3"

[dev-dependencies.axum]
version = "0.7.5"

[dev-dependencies.bpaf]
version = "0.9"
features = ["derive"]

[dev-dependencies.bytesize]
version = "1.2.0"

[dev-dependencies.cast]
version = "0.2.3"

[dev-dependencies.chrono]
version = "0.4.24"
features = ["serde"]

[dev-dependencies.criterion]
version = "0.5.1"
features = ["async_tokio"]

[dev-dependencies.crossterm]
version = "0.26.1"

[dev-dependencies.culpa]
version = "1.0.0"

[dev-dependencies.dioxus]
version = "0.5.1"
features = ["liveview"]

[dev-dependencies.dioxus-liveview]
version = "0.5.1"
features = ["axum"]

[dev-dependencies.flate2]
version = "1.0.30"

[dev-dependencies.flume]
version = "0.11.0"

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.humantime]
version = "2.1.0"

[dev-dependencies.once_cell]
version = "1.19.0"

[dev-dependencies.proptest]
version = "1.4.0"

[dev-dependencies.rand]
version = "0.8.5"

[dev-dependencies.ratatui]
version = "0.22.0"

[dev-dependencies.shlex]
version = "1.3.0"

[dev-dependencies.static_assertions]
version = "1.1"

[dev-dependencies.tempfile]
version = "3.20.0"

[dev-dependencies.tokio]
version = "1.21.2"
features = ["full"]

[dev-dependencies.tokio-test]
version = "0.4.1"

[dev-dependencies.tracing-subscriber]
version = "0.3.18"
features = ["tracing-log"]

[dev-dependencies.walkdir]
version = "2"
