# 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 = "alopex-core"
version = "0.4.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core storage engine for Alopex DB - LSM-tree, columnar storage, and vector index"
readme = "README.md"
keywords = [
    "database",
    "storage",
    "lsm-tree",
    "columnar",
    "vector",
]
categories = ["database-implementations"]
license = "Apache-2.0"
repository = "https://github.com/alopex-db/alopex"

[features]
async = []
checksum-xxh64 = ["xxhash-rust/xxh64"]
compression-lz4 = ["lz4"]
compression-zstd = ["zstd"]
default = []
memory-profiling = [
    "dhat",
    "crossbeam-skiplist",
]
s3 = [
    "object_store",
    "tokio",
    "bytes",
    "futures",
    "url",
]
tokio = [
    "async",
    "dep:tokio",
]
wasm = ["async"]
wasm-indexeddb = [
    "js-sys",
    "web-sys",
]

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

[[bin]]
name = "memory_profile"
path = "src/bin/memory_profile.rs"
required-features = ["memory-profiling"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.bincode]
version = "1.3"

[dependencies.bytes]
version = "1.5"
optional = true

[dependencies.crc32fast]
version = "1.4"

[dependencies.crossbeam-skiplist]
version = "0.1"
optional = true

[dependencies.dhat]
version = "0.3"
optional = true

[dependencies.futures]
version = "0.3"
optional = true

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

[dependencies.lz4]
version = "1.24"
optional = true

[dependencies.object_store]
version = "0.11"
features = ["aws"]
optional = true

[dependencies.rand]
version = "0.8"

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

[dependencies.snap]
version = "1.1"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.35"
features = ["full"]
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2.5"
optional = true

[dependencies.xxhash-rust]
version = "0.8"
features = ["xxh64"]
optional = true

[dependencies.zstd]
version = "0.13"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.memmap2]
version = "0.9"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
version = "0.5"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.crossbeam-skiplist]
version = "0.1"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.proptest]
version = "1.4"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.rand]
version = "0.8"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tempfile]
version = "3.8"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
]

[target.'cfg(not(target_os = "windows"))'.dependencies.jemalloc-ctl]
version = "0.5"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2"
features = ["js"]

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
optional = true

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.getrandom]
version = "0.2"
features = ["js"]

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.getrandom03]
version = "0.3"
features = ["wasm_js"]
package = "getrandom"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3"
