liven 0.0.9

LIVEN is a fast, lightweight database built to capture, store, and stream data in real time.
Documentation
# 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 = "liven"
version = "0.0.9"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "LIVEN is a fast, lightweight database built to capture, store, and stream data in real time."
homepage = "https://livendb.com"
documentation = "https://docs.rs/liven"
readme = "README.md"
keywords = [
    "database",
    "storage",
    "streaming",
    "embedded",
    "vector-search",
]
categories = [
    "database-implementations",
    "embedded",
    "data-structures",
    "concurrency",
]
license = "SSPL-1.0"
repository = "https://github.com/livendb/liven"

[package.metadata.deb]
maintainer = "LIVEN Maintainers <team@livendb.com>"
copyright = "2026, LIVEN Maintainers <team@livendb.com>"
section = "database"
priority = "optional"
assets = [
    [
    "target/release/liven",
    "usr/local/bin/liven",
    "755",
],
    [
    "liven.toml",
    "etc/liven/liven.toml",
    "644",
],
    [
    "liven.service",
    "lib/systemd/system/liven.service",
    "644",
],
]
conf-files = ["/etc/liven/liven.toml"]
maintainer-scripts = "debian"

[package.metadata.generate-rpm]
summary = "LIVEN High-Performance Storage Engine"
description = "High-performance storage engine with ZTNA and mTLS support"
license = "SSPL-1.0"
release = "1"
packager = "LIVEN Maintainers <team@livendb.com>"
conf-files = ["/etc/liven/liven.toml"]
post_install = """
# RPM %post installation script
if [ ! -d /var/lib/liven ]; then
    echo "Creating LIVEN data directory with secure permissions (700)..."
    mkdir -p /var/lib/liven
    chmod 700 /var/lib/liven
else
    echo "LIVEN data directory already exists. Preserving existing .liven data blocks."
fi
if [ ! -d /var/log/liven ]; then
    echo "Creating LIVEN log directory with secure permissions (700)..."
    mkdir -p /var/log/liven
    chmod 700 /var/log/liven
fi
systemctl daemon-reload || true
systemctl enable liven || true
"""
pre_uninstall = """
# RPM %preun uninstallation script
if [ "$1" -eq 0 ]; then
    # Complete uninstall (not an upgrade)
    systemctl stop liven || true
    systemctl disable liven || true
fi
"""
post_uninstall = """
# RPM %postun uninstallation script
systemctl daemon-reload || true
"""

[[package.metadata.generate-rpm.assets]]
source = "target/release/liven"
dest = "/usr/local/bin/liven"
mode = "755"

[[package.metadata.generate-rpm.assets]]
source = "liven.toml"
dest = "/etc/liven/liven.toml"
mode = "644"
config = true

[[package.metadata.generate-rpm.assets]]
source = "liven.service"
dest = "/usr/lib/systemd/system/liven.service"
mode = "644"

[package.metadata.docs.rs]
features = [
    "server",
    "tui",
    "tls",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["full"]
full = [
    "server",
    "tui",
]
server = [
    "dep:axum",
    "dep:tower-http",
    "dep:rust-embed",
    "dep:mime_guess",
    "tls",
]
tls = [
    "dep:tokio-rustls",
    "dep:rustls-pemfile",
    "dep:x509-parser",
]
tui = [
    "dep:ratatui",
    "dep:crossterm",
]

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

[[bin]]
name = "liven"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "engine_bench"
path = "benches/engine_bench.rs"
harness = false

[dependencies.axum]
version = "0.7.5"
features = ["ws"]
optional = true

[dependencies.base64]
version = "0.22.0"

[dependencies.blake3]
version = "1.5"

[dependencies.bytes]
version = "1.6"

[dependencies.config]
version = "0.14.0"
features = ["toml"]

[dependencies.crc32fast]
version = "1.4.2"

[dependencies.crossbeam-skiplist]
version = "0.1.3"

[dependencies.crossterm]
version = "0.27"
optional = true

[dependencies.csv]
version = "1.3.0"

[dependencies.fs2]
version = "0.4.3"

[dependencies.futures-util]
version = "0.3.30"
features = ["sink"]

[dependencies.mime_guess]
version = "2.0.4"
optional = true

[dependencies.nom]
version = "7.1.3"

[dependencies.ordered-float]
version = "4.2.0"
features = ["serde"]

[dependencies.rand]
version = "0.8.5"

[dependencies.ratatui]
version = "0.26"
optional = true

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

[dependencies.rust-embed]
version = "8.4.0"
optional = true

[dependencies.rustls-pemfile]
version = "2.1.0"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "1"

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

[dependencies.tokio-rustls]
version = "0.26.0"
optional = true

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

[dependencies.tower-http]
version = "0.5.2"
features = [
    "cors",
    "fs",
]
optional = true

[dependencies.tracing]
version = "0.1.40"

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

[dependencies.x509-parser]
version = "0.16.0"
optional = true

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.proptest]
version = "1.5.0"

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

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
strip = true