# 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 = "rectilinear-core"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core engine for Linear issue intelligence — search, sync, embeddings"
readme = false
license = "MIT"
repository = "https://github.com/pieter-ouwerkerk/rectilinear"

[features]
api-embeddings = []
default = ["api-embeddings"]
local-embeddings = [
    "llama-cpp-2",
    "indicatif",
]

[lib]
name = "rectilinear_core"
crate-type = [
    "lib",
    "staticlib",
    "cdylib",
]
path = "src/lib.rs"

[[bin]]
name = "uniffi-bindgen"
path = "src/bin/uniffi-bindgen.rs"

[dependencies.anyhow]
version = "1"

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

[dependencies.dirs]
version = "6"

[dependencies.hex]
version = "0.4"

[dependencies.indicatif]
version = "0.17"
optional = true

[dependencies.llama-cpp-2]
version = "0.1"
optional = true

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[dependencies.rusqlite]
version = "0.32"
features = [
    "bundled",
    "blob",
]

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"

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

[dependencies.toml]
version = "0.8"

[dependencies.uniffi]
version = "0.29"
features = [
    "cli",
    "tokio",
]

[dependencies.uuid]
version = "1"
features = ["v4"]

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