# 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 = "elastic_lens"
version = "0.10.0"
authors = ["Ben Falk <benjamin.falk@yahoo.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An opinionated framework to work with Elasticsearch."
readme = "README.md"
keywords = ["elasticsearch"]
categories = ["database"]
license-file = "LICENSE.md"
repository = "https://github.com/benfalk/elastic_lens"

[features]
es_7 = []
es_8 = []
official_client = []
official_es7 = [
    "elastic_lens_offical_es7",
    "official_client",
    "es_7",
]
official_es8 = [
    "elastic_lens_offical_es8",
    "official_client",
    "es_8",
]

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

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

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

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

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

[[example]]
name = "inventory_item"
crate-type = ["lib"]
path = "examples/inventory_item.rs"

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

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

[[example]]
name = "sample_code"
crate-type = ["lib"]
path = "examples/sample_code.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.arraystring]
version = "0.3.0"

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

[dependencies.elastic_lens_offical_es7]
version = "7"
optional = true

[dependencies.elastic_lens_offical_es8]
version = "8"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.tokio]
version = "1"
features = ["full"]
