[package]
name = "tomllm"
version = "0.1.0"
edition = "2024"
description = "TOML + LLM comment conventions: tribal knowledge in #comments, stripped for data pipelines"
license = "MIT"
repository = "https://github.com/PromptExecution/tomllm"
keywords = ["toml", "llm", "agent", "config", "annotations"]
categories = ["parsing", "config", "text-processing"]
readme = "README.md"

[lib]
name = "tomllm"
crate-type = ["cdylib", "rlib"]  # cdylib for WASM/Python, rlib for Rust consumers

[features]
default = []
# 🤓 wasm: enables wasm-bindgen exports for TypeScript/JS consumers
wasm = ["wasm-bindgen", "serde-wasm-bindgen"]
# 🤓 python: pyo3 extension-module bindings (maturin build --features python)
python = ["pyo3/extension-module"]

[dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "0.9"
regex = "1"
thiserror = "2"

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

[dependencies.serde-wasm-bindgen]
version = "0.6"
optional = true

[dependencies.pyo3]
version = "0.27"
optional = true
features = ["extension-module"]

[dev-dependencies]
tempfile = "3"
