[package]
edition = "2021"
rust-version = "1.91"
name = "dittolive-ditto"
version = "5.0.3"
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]
__internal-testing = []
default = [
"timeseries",
"ffi_sdk/default",
]
fs-storage = ["ffi_sdk/fs-storage"]
in-memory-storage = ["ffi_sdk/in-memory-storage"]
preview = []
preview-datastreams = [
"preview",
"dittolive-ditto-base",
"dittolive-ditto-base/preview-datastreams",
"ffi_sdk/preview-datastreams",
]
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 = "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 = "datastreams"
path = "examples/datastreams.rs"
required-features = ["preview-datastreams"]
[[example]]
name = "datastreams_ping"
path = "examples/datastreams_ping.rs"
required-features = ["preview-datastreams"]
[[example]]
name = "datastreams_pong"
path = "examples/datastreams_pong.rs"
required-features = ["preview-datastreams"]
[[example]]
name = "datastreams_with_arguments"
path = "examples/datastreams_with_arguments.rs"
required-features = ["preview-datastreams"]
[[example]]
name = "old_sync_test"
path = "examples/old_sync_test.rs"
[[test]]
name = "attachment_doc_snippet"
path = "tests/attachment_doc_snippet.rs"
[[test]]
name = "auth"
path = "tests/auth.rs"
[[test]]
name = "database_id"
path = "tests/database_id.rs"
[[test]]
name = "datastreams"
path = "tests/datastreams.rs"
required-features = ["preview-datastreams"]
[[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 = "open_deadlock"
path = "tests/open_deadlock.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 = "transport_config"
path = "tests/transport_config.rs"
[[test]]
name = "udp_mdns"
path = "tests/udp_mdns.rs"
[[test]]
name = "virtual_collection"
path = "tests/virtual_collection.rs"
[[bench]]
name = "attachments"
path = "benches/attachments.rs"
harness = false
[[bench]]
name = "datastreams"
path = "benches/datastreams.rs"
harness = false
required-features = ["preview-datastreams"]
[[bench]]
name = "replication"
path = "benches/replication.rs"
harness = false
[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 = "=5.0.3"
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 = "=5.0.3"
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.9"
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.clap]
version = "4"
features = ["derive"]
[dev-dependencies.criterion]
version = "0.8.0"
features = ["async_tokio"]
[dev-dependencies.crossterm]
version = "0.26.1"
features = ["event-stream"]
[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.libtest-mimic]
version = "0.8.1"
[dev-dependencies.log]
version = "0.4.11"
[dev-dependencies.once_cell]
version = "1.19.0"
[dev-dependencies.pretty_assertions]
version = "1.4.1"
[dev-dependencies.proptest]
version = "1.9.0"
[dev-dependencies.rand]
version = "0.9"
[dev-dependencies.ratatui]
version = "0.22.0"
features = ["crossterm"]
[dev-dependencies.rustc-stable-hash]
version = "0.1.2"
[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"