# 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 = "rxqlite"
version = "0.1.14-dev"
authors = ["ha421 <hha835773@gmail.com>"]
description = "A secured distributed sqlite database built upon `openraft`, `sqlx` and `sqlite`."
homepage = "https://github.com/HaHa421/rxqlite"
readme = "README.md"
keywords = [
    "distributed",
    "sqlite",
]
categories = [
    "distributed",
    "database",
    "raft",
    "sqlite",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/HaHa421/rxqlite"

[package.metadata.docs.rs]
all-features = true

[[bin]]
name = "rxqlited"
path = "bin/main.rs"

[[example]]
name = "rxqlite-client"
path = "examples/client.rs"

[[example]]
name = "rxqlite-client-insecure-tls"
path = "examples/client_insecure_tls.rs"

[dependencies.aes-gcm-siv]
version = "0.11.1"
optional = true

[dependencies.anyhow]
version = "1"

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.byteorder]
version = "1.4.3"

[dependencies.clap]
version = "4.1.11"
features = [
    "derive",
    "env",
]

[dependencies.futures]
version = "0.3.30"

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

[dependencies.openraft]
version = "0.9"
features = [
    "serde",
    "storage-v2",
]

[dependencies.rand]
version = "0.8"
optional = true

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
    "http2",
]
default-features = false

[dependencies.ring]
version = "0.17"
optional = true

[dependencies.rocksdb]
version = "0.22"

[dependencies.rsa]
version = "0.9"
optional = true

[dependencies.rustls]
version = "0.22"

[dependencies.rustls-pemfile]
version = "2"

[dependencies.rxqlite-common]
version = "0.1"

[dependencies.rxqlite-lite-common]
version = "0.1"

[dependencies.rxqlite-notification]
version = "0.1"

[dependencies.rxqlite-sqlx-common]
version = "0.1"
features = ["sqlite"]

[dependencies.rxqlite-tests-common]
version = "0.1"
optional = true

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

[dependencies.serde_json]
version = "1.0.57"

[dependencies.sqlx]
version = "0.7"
features = [
    "runtime-tokio-rustls",
    "chrono",
]

[dependencies.sqlx-core]
version = "0.7"

[dependencies.sqlx-sqlite-cipher]
version = "0.7"

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

[dependencies.tokio-rustls]
version = "0.26"

[dependencies.tokio-stream]
version = "0.1"

[dependencies.tokio-util]
version = "0.7"
features = ["codec"]

[dependencies.toy-rpc-ha421]
version = "0.9.0-beta.1"
features = [
    "ws_tokio",
    "server",
    "client",
    "tokio_runtime",
    "tls",
]

[dependencies.tracing]
version = "0.1.40"

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

[dependencies.warp]
version = "0.3"
features = ["tls"]

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

[dev-dependencies.rxqlite-tests-common]
version = "0.1"

[features]
bundled-sqlcipher = [
    "sqlx-sqlite-cipher/bundled-sqlcipher",
    "sqlcipher",
]
bundled-sqlcipher-vendored-openssl = [
    "sqlx-sqlite-cipher/bundled-sqlcipher-vendored-openssl",
    "sqlcipher",
]
default = ["bundled-sqlcipher-vendored-openssl"]
rsa-crate = [
    "rsa",
    "rand",
]
sqlcipher = [
    "sqlx-sqlite-cipher/sqlcipher",
    "rsa-crate",
    "ring",
    "base64",
    "aes-gcm-siv",
]
test-dependency = ["rxqlite-tests-common"]

[target."cfg(target_os = \"windows\")".dependencies.winapi]
version = "0"
features = [
    "fileapi",
    "winbase",
]
