# 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"
name = "meridian-client"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust client SDK for Meridian — real-time CRDT sync over WebSocket"
homepage = "https://github.com/Chahine-tech/meridian"
readme = false
keywords = [
    "crdt",
    "realtime",
    "sync",
    "websocket",
    "collaborative",
]
categories = [
    "network-programming",
    "asynchronous",
    "data-structures",
]
license = "MIT"
repository = "https://github.com/Chahine-tech/meridian"
resolver = "2"

[features]
default = ["ws"]
ws = [
    "dep:tokio-tungstenite",
    "dep:futures-util",
]

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

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

[dependencies.dashmap]
version = "6"

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.meridian-core]
version = "0.1.1"

[dependencies.rand]
version = "0.8"

[dependencies.rmp-serde]
version = "1.3"

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

[dependencies.serde_bytes]
version = "0.11"

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

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

[dependencies.tokio-tungstenite]
version = "0.26"
features = ["rustls-tls-native-roots"]
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1"
features = ["v4"]

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

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