# 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 = "oversync-api"
version = "0.5.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Type-safe HTTP API for managing oversync sources, sinks, and sync status."
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/overrealdb/oversync"
resolver = "2"

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

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

[dependencies.axum]
version = "0.8"

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

[dependencies.oversync-core]
version = "0.5.1"

[dependencies.oversync-queries]
version = "0.5.1"

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

[dependencies.serde_json]
version = "1"

[dependencies.subtle]
version = "2"

[dependencies.surrealdb]
version = "3"
features = [
    "kv-mem",
    "protocol-http",
    "protocol-ws",
]

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

[dependencies.tracing]
version = "0.1"

[dependencies.utoipa]
version = "5"
features = [
    "axum_extras",
    "chrono",
]

[dev-dependencies.http-body-util]
version = "0.1"

[dev-dependencies.tower]
version = "0.5"
