[package]
name = "jsonfix"
version = "0.2.0"
edition = "2024"
rust-version = "1.85"
license = "MIT OR Apache-2.0"
description = "Repair, extract, and partially parse malformed JSON from LLMs and other unreliable sources. no_std, zero dependencies, lossless numbers."
repository = "https://github.com/themankindproject/jsonfix"
authors = ["Ashutosh Kumar <kumarashutosh34169@gmail.com>"]
keywords = ["json", "repair", "llm", "streaming", "no-std"]
categories = ["parsing", "no-std", "development-tools"]
include = ["/src/**/*.rs", "/Cargo.toml", "/README.md", "/LICENSE-MIT", "/LICENSE-APACHE"]
[workspace]
members = ["benchmarks"]
default-members = ["."]
[features]
default = []
std = []
serde = ["dep:serde"]
serde_json = ["dep:serde_json", "serde"]
[dependencies]
serde = { version = "1.0.100", default-features = false, features = ["alloc"], optional = true }
serde_json = { version = "1.0.45", default-features = false, features = ["alloc"], optional = true }
[dev-dependencies]
proptest = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[profile.release]
lto = "thin"
codegen-units = 1
strip = "symbols"