[package]
edition = "2024"
rust-version = "1.88"
name = "typesayer-parser"
version = "0.1.2"
authors = [
"Thomas Santerre <opensource@moderately.ai>",
"Moderately AI Inc. <opensource@moderately.ai>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Incremental typed parser for streaming structured language-model output"
homepage = "https://github.com/moderately-ai/typesayer"
documentation = "https://docs.rs/typesayer-parser"
readme = "README.md"
keywords = [
"llm",
"parser",
"streaming",
"structured-output",
]
categories = [
"parser-implementations",
"asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/moderately-ai/typesayer"
[package.metadata.docs.rs]
all-features = true
[features]
default = []
test-utils = [
"dep:modelplease",
"dep:enumset",
"dep:proptest",
]
[lib]
name = "typesayer_parser"
path = "src/lib.rs"
[dependencies.enumset]
version = "=1.1.5"
features = ["serde"]
optional = true
[dependencies.modelplease]
version = "0.1.1"
optional = true
default-features = false
[dependencies.proptest]
version = "1.5"
optional = true
[dependencies.regex]
version = "=1.12.3"
[dependencies.serde]
version = "=1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "=1.0.149"
features = ["arbitrary_precision"]
[dependencies.thiserror]
version = "=2.0.18"
[dependencies.tracing]
version = "=0.1.44"
[dependencies.typesayer-types]
version = "0.1.2"
[dev-dependencies.enumset]
version = "=1.1.5"
features = ["serde"]
[dev-dependencies.modelplease]
version = "0.1.1"
default-features = false
[dev-dependencies.proptest]
version = "1.5"
[dev-dependencies.tokio]
version = "=1.50.0"
features = [
"fs",
"io-std",
"io-util",
"macros",
"rt-multi-thread",
"signal",
"sync",
"time",
]
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
dbg_macro = "deny"
doc_markdown = "allow"
expect_used = "allow"
future_not_send = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
panic = "allow"
print_stderr = "deny"
print_stdout = "deny"
result_large_err = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
type_complexity = "allow"
unwrap_used = "allow"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.cargo]
level = "allow"
priority = -1
[lints.clippy.nursery]
level = "allow"
priority = -1
[lints.clippy.pedantic]
level = "allow"
priority = -1
[lints.rust]
unsafe_code = "deny"