-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
45 lines (38 loc) · 1.14 KB
/
Cargo.toml
File metadata and controls
45 lines (38 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[package]
name = "tomllm"
version = "0.1.0"
edition = "2024"
description = "Structured TOML annotations for AI-augmented applications — annotate config for LLMs, strip for pipelines"
license = "MIT"
repository = "https://github.com/PromptExecution/tomllm"
documentation = "https://docs.rs/tomllm"
keywords = ["toml", "llm", "ai", "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"