# 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 = "allourthings-core"
version = "0.1.10"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core storage library for All Our Things — shared across MCP server, iOS, and Android."
readme = "README.md"
keywords = [
    "inventory",
    "storage",
    "mcp",
    "household",
]
categories = ["filesystem"]
license = "MIT"
repository = "https://github.com/matt-harding/allourthings-core"

[features]
napi = [
    "dep:napi",
    "dep:napi-derive",
]
uniffi = [
    "dep:uniffi",
    "dep:uniffi_bindgen",
    "uniffi/cli",
]

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

[[bin]]
name = "uniffi-bindgen"
path = "uniffi-bindgen.rs"
required-features = ["uniffi"]

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

[dependencies.napi]
version = "2"
features = [
    "napi4",
    "serde-json",
]
optional = true

[dependencies.napi-derive]
version = "2"
optional = true

[dependencies.rand]
version = "0.8"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "1"

[dependencies.uniffi]
version = "0.28"
optional = true

[dependencies.uniffi_bindgen]
version = "0.28"
optional = true

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

[build-dependencies.napi-build]
version = "1"
