# 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.96"
name = "thingd"
version = "0.37.0"
build = false
exclude = ["examples/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core primitives for thingd, an object-shaped local memory engine for apps and agents."
readme = "README.md"
keywords = [
    "ai",
    "memory",
    "mcp",
    "sqlite",
    "database",
]
categories = [
    "database-implementations",
    "caching",
]
license = "Apache-2.0"
repository = "https://github.com/sayanmohsin/thingd"
resolver = "2"

[package.metadata.docs.rs]
features = ["sqlite"]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
connectors = ["dep:csv"]
default = []
sqlite = [
    "dep:rusqlite",
    "dep:uuid",
]

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

[dependencies.chrono]
version = "0.4.45"

[dependencies.csv]
version = "1.3"
optional = true

[dependencies.rusqlite]
version = "0.40.1"
features = ["bundled"]
optional = true

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

[dependencies.serde_json]
version = "1.0.150"

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

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

[lints.clippy]
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"

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

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

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

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

[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_crate_dependencies = "warn"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
