amaters-core 0.2.0

Core kernel for AmateRS - Fully Homomorphic Encrypted Database
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"
rust-version = "1.85"
name = "amaters-core"
version = "0.2.0"
authors = ["COOLJAPAN OU (Team KitaSan) <contact@cooljapan.tech>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core kernel for AmateRS - Fully Homomorphic Encrypted Database"
homepage = "https://github.com/cool-japan/amaters"
documentation = "https://docs.rs/amaters"
readme = "README.md"
keywords = [
    "fhe",
    "database",
    "encryption",
    "privacy",
    "tfhe",
]
categories = [
    "cryptography",
    "database-implementations",
    "algorithms",
]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/amaters"
resolver = "2"

[features]
compute = [
    "tfhe",
    "oxicode",
]
cuda = ["gpu"]
default = [
    "storage",
    "compute",
]
gpu = []
metal = ["gpu"]
mmap = ["memmap2"]
parallel = ["rayon"]
storage = []

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

[[example]]
name = "credit_scoring"
path = "examples/credit_scoring.rs"

[[example]]
name = "healthcare_genomics"
path = "examples/healthcare_genomics.rs"

[[example]]
name = "supply_chain"
path = "examples/supply_chain.rs"

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

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

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

[[bench]]
name = "fhe_benchmarks"
path = "benches/fhe_benchmarks.rs"

[[bench]]
name = "lsm_benchmarks"
path = "benches/lsm_benchmarks.rs"

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

[[bench]]
name = "storage_benchmarks"
path = "benches/storage_benchmarks.rs"

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

[dependencies.blake3]
version = "1.8"

[dependencies.bytemuck]
version = "1.25"
features = ["derive"]

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

[dependencies.crc32fast]
version = "1.5"

[dependencies.crossbeam]
version = "0.8"

[dependencies.dashmap]
version = "6.1"

[dependencies.futures]
version = "0.3"

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

[dependencies.num_cpus]
version = "1.17"

[dependencies.oxiarc-deflate]
version = "0.2"

[dependencies.oxiarc-lz4]
version = "0.2"

[dependencies.oxicode]
version = "0.2"
features = [
    "alloc",
    "serde",
]
optional = true

[dependencies.parking_lot]
version = "0.12"

[dependencies.rayon]
version = "1.11"
optional = true

[dependencies.rkyv]
version = "0.8"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.tfhe]
version = "1.5"
features = [
    "boolean",
    "shortint",
    "integer",
]
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.50"
features = [
    "full",
    "rt-multi-thread",
    "fs",
    "io-util",
    "sync",
]

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.anyhow]
version = "1.0"

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

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

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

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

[dev-dependencies.tokio]
version = "1.50"
features = [
    "full",
    "full",
    "test-util",
]

[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"