# 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-c"
version = "0.12.1"
authors = ["Kristian dF Kollsgård <kkollsg@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = 'C ABI for kglite — stable extern "C" surface over the kglite engine so non-Rust bindings (Go via cgo, JavaScript via napi, JVM via JNI, .NET via P/Invoke, …) consume a single C header rather than re-implementing wrappers in their host language. The Rust types (DirGraph, Session, CypherResult, KgErrorCode) live in the sibling `kglite` crate; this crate is glue.'
homepage = "https://github.com/kkollsga/kglite"
documentation = "https://docs.rs/kglite-c"
readme = "README.md"
keywords = [
    "c-abi",
    "ffi",
    "knowledge-graph",
    "cypher",
    "kglite",
]
categories = [
    "external-ffi-bindings",
    "database",
]
license = "MIT"
repository = "https://github.com/kkollsga/kglite"

[features]
default = []
fastembed = ["kglite/fastembed"]
rdf = ["kglite/rdf"]
sec = ["kglite/sec"]
sodir = ["kglite/sodir"]
wikidata = [
    "kglite/wikidata",
    "dep:chrono",
]

[lib]
name = "kglite_c"
crate-type = [
    "cdylib",
    "staticlib",
    "rlib",
]
path = "src/lib.rs"
doctest = false

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

[dependencies.chrono]
version = "0.4.43"
optional = true
default-features = false

[dependencies.kglite]
version = "0.12"
default-features = false

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

[dependencies.serde_json]
version = "1"

[build-dependencies.cbindgen]
version = "0.27"
