# 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 = "oramacore_fields"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "On-disk field indexes (bool, number, string, string_filter, geopoint) for search engines"
homepage = "https://orama.com/"
readme = "README.md"
license = "AGPL-3.0-or-later"
repository = "https://github.com/oramasearch/oramacore_fields"

[features]
alloc-tests = []
cli = [
    "clap",
    "serde",
]
default = ["simd"]
serde = ["dep:serde"]
simd = []

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

[[bin]]
name = "oramacore_fields"
path = "src/bin/cli.rs"
required-features = ["cli"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

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

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.fst]
version = "0.4"
features = ["levenshtein"]

[dependencies.memmap2]
version = "0.9"

[dependencies.rand]
version = "0.10"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.smallvec]
version = "1"

[dependencies.tracing]
version = "0.1"

[dependencies.xtri]
version = "0.1"

[dev-dependencies.assert_approx_eq]
version = "1.1.0"

[dev-dependencies.rand]
version = "0.10"

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

[target."cfg(unix)".dependencies.libc]
version = "0.2"
