# 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.91.1"
name = "grafeo-core"
version = "0.5.40"
authors = ["S.T. Grond"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core graph models, indexes, and execution primitives for Grafeo"
readme = false
license = "Apache-2.0"
repository = "https://github.com/GrafeoDB/grafeo"
resolver = "2"

[features]
ai = [
    "vector-index",
    "text-index",
    "hybrid-search",
]
compact-store = []
default = [
    "lpg",
    "parallel",
    "spill",
    "mmap",
    "regex",
]
hybrid-search = [
    "text-index",
    "vector-index",
]
jsonl-import = ["serde_json"]
lpg = []
mmap = []
parallel = [
    "rayon",
    "crossbeam",
]
parquet-import = ["parquet"]
rdf = ["triple-store"]
ring-index = [
    "succinct-indexes",
    "triple-store",
]
shacl = ["triple-store"]
spill = []
succinct-indexes = []
temporal = ["grafeo-common/temporal"]
testing-crash-injection = ["grafeo-common/testing-crash-injection"]
text-index = []
tiered-storage = ["grafeo-common/tiered-storage"]
triple-store = []
vector-index = [
    "ordered-float",
    "rand",
]

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

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

[[bench]]
name = "index_bench"
path = "benches/index_bench.rs"
harness = false
required-features = ["vector-index"]

[dependencies.arcstr]
version = "1"
features = ["serde"]

[dependencies.bincode]
version = "2.0"
features = ["serde"]

[dependencies.byteorder]
version = "1"

[dependencies.bytes]
version = "1"

[dependencies.crc32fast]
version = "1"

[dependencies.crossbeam]
version = "0.8"
optional = true

[dependencies.dashmap]
version = "6"

[dependencies.foldhash]
version = "0.2"

[dependencies.grafeo-common]
version = "0.5.40"

[dependencies.hashbrown]
version = "0.17"
features = ["serde"]

[dependencies.indexmap]
version = "2"

[dependencies.ordered-float]
version = "5"
optional = true

[dependencies.parking_lot]
version = "0.12"

[dependencies.parquet]
version = "58"
optional = true
default-features = false

[dependencies.rand]
version = "0.10.1"
optional = true

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

[dependencies.regex]
version = "1"
optional = true

[dependencies.regex-lite]
version = "0.1"
optional = true

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

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.smallvec]
version = "1"

[dependencies.thiserror]
version = "2.0"

[dependencies.unicode-normalization]
version = "0.1"

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

[dev-dependencies.serde_json]
version = "1"

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

[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "warn"
cast_possible_wrap = "warn"
cast_precision_loss = "allow"
cast_sign_loss = "warn"
default_trait_access = "allow"
derivable_impls = "allow"
doc_link_with_quotes = "allow"
doc_markdown = "allow"
float_cmp = "allow"
if_not_else = "allow"
implicit_hasher = "allow"
items_after_statements = "allow"
large_enum_variant = "allow"
manual_div_ceil = "allow"
manual_slice_size_calculation = "allow"
map_entry = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_errors_doc = "warn"
missing_fields_in_debug = "allow"
missing_panics_doc = "warn"
module_name_repetitions = "allow"
must_use_candidate = "allow"
mut_from_ref = "allow"
needless_continue = "allow"
needless_pass_by_value = "allow"
needless_range_loop = "allow"
needless_raw_string_hashes = "allow"
ptr_as_ptr = "allow"
redundant_closure_for_method_calls = "allow"
ref_option = "allow"
return_self_not_must_use = "allow"
should_implement_trait = "allow"
similar_names = "allow"
single_match = "allow"
single_match_else = "allow"
struct_field_names = "allow"
too_many_lines = "allow"
type_complexity = "allow"
uninlined_format_args = "allow"
unnecessary_literal_bound = "allow"
unnecessary_map_or = "allow"
unnecessary_wraps = "allow"
unnested_or_patterns = "allow"
unreadable_literal = "allow"
unused_self = "allow"
used_underscore_binding = "allow"
while_let_loop = "allow"
wildcard_imports = "warn"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
