# 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 = "kglite"
version = "0.11.10"
authors = ["Kristian dF Kollsgård <kkollsg@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-Rust knowledge graph engine — Cypher pipeline, snapshot/working CoW transactions, columnar/mmap/disk storage backends, optional dataset loaders (SEC EDGAR, Sodir, Wikidata). PyO3 wrappers live in the sibling kglite-py crate (the Python wheel); embeddable directly from any Rust binary without PyO3 in the dep tree."
homepage = "https://github.com/kkollsga/kglite"
documentation = "https://docs.rs/kglite"
readme = "README.md"
keywords = [
    "graph",
    "knowledge-graph",
    "cypher",
    "petgraph",
    "database",
]
categories = [
    "database",
    "data-structures",
]
license = "MIT"
repository = "https://github.com/kkollsga/kglite"

[package.metadata.docs.rs]
features = [
    "sec",
    "sodir",
    "wikidata",
    "fastembed",
    "okf",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
fastembed = ["dep:fastembed"]
okf = ["dep:yaml-rust2"]
parallel-bz2 = ["dep:bzip2-rs"]
rdf = [
    "dep:oxttl",
    "dep:oxrdf",
]
sec = [
    "dep:thiserror",
    "dep:reqwest",
    "dep:governor",
    "dep:zip",
    "dep:quick-xml",
]
sodir = [
    "dep:thiserror",
    "dep:reqwest",
    "dep:governor",
]
wikidata = [
    "dep:thiserror",
    "dep:reqwest",
]

[lib]
name = "kglite"
path = "src/lib.rs"
doctest = false

[[bin]]
name = "bz2_bench"
path = "src/bin/bz2_bench.rs"
required-features = ["parallel-bz2"]

[[bin]]
name = "code_tree_stats"
path = "src/bin/code_tree_stats.rs"

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

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

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

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

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

[dependencies.aho-corasick]
version = "1.1.4"

[dependencies.bincode]
version = "1.3"

[dependencies.bzip2]
version = "0.6"

[dependencies.bzip2-rs]
version = "0.1"
optional = true

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

[dependencies.csv]
version = "1.3"

[dependencies.fastembed]
version = "5"
features = [
    "ort-download-binaries-native-tls",
    "hf-hub-native-tls",
]
optional = true
default-features = false

[dependencies.flate2]
version = "1"

[dependencies.geo]
version = "0.33"

[dependencies.geojson]
version = "0.24"

[dependencies.governor]
version = "0.7"
optional = true

[dependencies.indexmap]
version = "2"
features = ["serde"]

[dependencies.libc]
version = "0.2"

[dependencies.memchr]
version = "2"

[dependencies.memmap2]
version = "0.9"

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

[dependencies.oxttl]
version = "0.2"
optional = true

[dependencies.petgraph]
version = "0.8.3"
features = ["serde-1"]

[dependencies.quick-xml]
version = "0.36"
optional = true

[dependencies.rayon]
version = "1.10"

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls",
    "gzip",
    "stream",
]
optional = true
default-features = false

[dependencies.roxmltree]
version = "0.21.1"

[dependencies.rstar]
version = "0.12"

[dependencies.rustc-hash]
version = "2"

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.tempfile]
version = "3"

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

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "fs",
    "io-util",
    "sync",
    "time",
]

[dependencies.toml]
version = "1.1.2"

[dependencies.tree-sitter]
version = "0.26.8"

[dependencies.tree-sitter-c]
version = "0.24.1"

[dependencies.tree-sitter-c-sharp]
version = "0.23.5"

[dependencies.tree-sitter-cpp]
version = "0.23.4"

[dependencies.tree-sitter-css]
version = "0.25.0"

[dependencies.tree-sitter-dart]
version = "0.2.0"

[dependencies.tree-sitter-go]
version = "0.25.0"

[dependencies.tree-sitter-html]
version = "0.23.2"

[dependencies.tree-sitter-java]
version = "0.23.5"

[dependencies.tree-sitter-javascript]
version = "0.25.0"

[dependencies.tree-sitter-php]
version = "0.24.2"

[dependencies.tree-sitter-python]
version = "0.25.0"

[dependencies.tree-sitter-rust]
version = "0.24.2"

[dependencies.tree-sitter-swift]
version = "0.7.2"

[dependencies.tree-sitter-typescript]
version = "0.23.2"

[dependencies.walkdir]
version = "2.5.0"

[dependencies.wkt]
version = "0.14"

[dependencies.yaml-rust2]
version = "0.10"
optional = true

[dependencies.zip]
version = "2"
features = ["deflate"]
optional = true
default-features = false

[dependencies.zstd]
version = "0.13"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
]

[target."cfg(loom)".dev-dependencies.loom]
version = "0.7"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(loom)"]
