# 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"
name = "dittolive-ditto"
version = "4.0.1"
authors = ["Ditto Engineering Team <engineering@ditto.live>"]
publish = true
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://docs.ditto.live/"
readme = "README.md"
keywords = [
    "sdk",
    "distributed",
    "peer-to-peer",
    "database",
    "bluetooth",
]
categories = [
    "database-implementations",
    "external-ffi-bindings",
    "database",
]
license-file = "LICENSE.md"
resolver = "2"

[profile.bench]
rpath = true

[profile.dev]
rpath = true

[profile.release]
rpath = true

[[bench]]
name = "benchmarks"
path = "benchmarking/main.rs"
harness = false

[dependencies.chrono]
version = "0.4"
optional = true

[dependencies.crossbeam-utils]
version = "0.8"

[dependencies.dotenv]
version = "0.15.0"

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

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

[dependencies.fs_extra]
version = "1.2"

[dependencies.log]
version = "0.4.11"

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

[dependencies.safer-ffi]
version = "0.0.5"
features = ["out-refs"]

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

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

[dependencies.serde_bytes]
version = "0.11.5"

[dependencies.serde_cbor]
version = "0.11.1"

[dependencies.serde_json]
version = "1.0.57"

[dependencies.to_method]
version = "1.1.0"

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

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

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

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

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

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

[dev-dependencies.env_logger]
version = "0.8"

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

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

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

[dev-dependencies.tracing]
version = "0.1.30"

[features]
default = [
    "timeseries",
    "ffi_sdk/default",
]
fs-storage = ["ffi_sdk/fs-storage"]
in-memory-storage = ["ffi_sdk/in-memory-storage"]
shared-runtime-hack = []
timeseries = ["chrono"]
