# 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"
rust-version = "1.85"
name = "amaters-server"
version = "0.2.1"
authors = ["COOLJAPAN OU (Team KitaSan) <contact@cooljapan.tech>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "AmateRS server binary"
readme = "README.md"
keywords = [
    "database",
    "server",
]
categories = ["database-implementations"]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/amaters"
resolver = "2"

[features]
cluster = ["dep:amaters-cluster"]
compute = [
    "amaters-core/compute",
    "amaters-net/compute",
]
default = [
    "compute",
    "cluster",
]

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

[[bin]]
name = "amaters-server"
path = "src/main.rs"

[[test]]
name = "auth_integration"
path = "tests/auth_integration.rs"

[[test]]
name = "e2e_tests"
path = "tests/e2e_tests.rs"

[[test]]
name = "fault_tolerance_tests"
path = "tests/fault_tolerance_tests.rs"

[[test]]
name = "fhe_filter_tests"
path = "tests/fhe_filter_tests.rs"

[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"

[[test]]
name = "lsm_persistence_tests"
path = "tests/lsm_persistence_tests.rs"

[[test]]
name = "performance_tests"
path = "tests/performance_tests.rs"

[dependencies.amaters-cluster]
version = "0.2.1"
optional = true

[dependencies.amaters-core]
version = "0.2.1"

[dependencies.amaters-net]
version = "0.2.1"

[dependencies.anyhow]
version = "1.0"

[dependencies.arc-swap]
version = "1.9"

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

[dependencies.base64]
version = "0.22"

[dependencies.blake3]
version = "1.8"

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

[dependencies.clap]
version = "4.6"
features = [
    "derive",
    "cargo",
]

[dependencies.jsonwebtoken]
version = "10.3"
features = ["rust_crypto"]

[dependencies.notify]
version = "8.2"

[dependencies.parking_lot]
version = "0.12"

[dependencies.rustls]
version = "0.23"
features = ["ring"]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.11"

[dependencies.thiserror]
version = "2.0"

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

[dependencies.toml]
version = "1.1"

[dependencies.tonic]
version = "0.14"
features = [
    "gzip",
    "transport",
    "tls-ring",
    "tls-webpki-roots",
]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-appender]
version = "0.2"

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

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

[dependencies.x509-parser]
version = "0.18"

[dev-dependencies.amaters-sdk-rust]
version = "0.2.1"

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

[lints.clippy]
expect_used = "allow"
too_many_arguments = "allow"
type_complexity = "allow"
unwrap_used = "warn"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "allow"
priority = -1

[lints.clippy.pedantic]
level = "allow"
priority = -1

[lints.rust]
dead_code = "allow"
unsafe_op_in_unsafe_fn = "warn"
unused_imports = "allow"
unused_mut = "allow"
unused_variables = "allow"
