[package]
edition = "2024"
name = "prosaic-core"
version = "0.6.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "General-purpose natural language generation from structured data"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/wildmason/prosaic"
resolver = "2"
[features]
default = [
"std",
"time",
"polish",
"reg",
]
parallel = [
"dep:rayon",
"std",
]
polish = []
reg = []
serde = [
"dep:serde",
"dep:serde_json",
"ahash/serde",
"hashbrown/serde",
]
std = [
"ahash/std",
"thiserror/std",
"serde?/std",
]
time = ["std"]
[lib]
name = "prosaic_core"
path = "src/lib.rs"
[[example]]
name = "demo"
path = "examples/demo.rs"
[[example]]
name = "domains"
path = "examples/domains.rs"
[[example]]
name = "list_style_continuity_demo"
path = "examples/list_style_continuity_demo.rs"
[[example]]
name = "long_corpus_diag"
path = "examples/long_corpus_diag.rs"
[[example]]
name = "refine_pass_demo"
path = "examples/refine_pass_demo.rs"
[[example]]
name = "sentence_rhythm_demo"
path = "examples/sentence_rhythm_demo.rs"
[[example]]
name = "style_profile_demo"
path = "examples/style_profile_demo.rs"
[[example]]
name = "use_case_samples"
path = "examples/use_case_samples.rs"
[[example]]
name = "v0_6_showcase"
path = "examples/v0_6_showcase.rs"
[[test]]
name = "centering"
path = "tests/centering.rs"
[[test]]
name = "compiled_template"
path = "tests/compiled_template.rs"
[[test]]
name = "derive"
path = "tests/derive.rs"
[[test]]
name = "faithfulness_gate"
path = "tests/faithfulness_gate.rs"
[[test]]
name = "faithfulness_scorer"
path = "tests/faithfulness_scorer.rs"
[[test]]
name = "graph_reg"
path = "tests/graph_reg.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "language_preference"
path = "tests/language_preference.rs"
[[test]]
name = "load_manifest"
path = "tests/load_manifest.rs"
[[test]]
name = "possessive"
path = "tests/possessive.rs"
[[test]]
name = "properties"
path = "tests/properties.rs"
[[test]]
name = "proportion"
path = "tests/proportion.rs"
[[test]]
name = "prosaic_template_macro"
path = "tests/prosaic_template_macro.rs"
[[test]]
name = "refine_pass"
path = "tests/refine_pass.rs"
[[test]]
name = "refine_structured"
path = "tests/refine_structured.rs"
[[test]]
name = "register_with_schema"
path = "tests/register_with_schema.rs"
[[test]]
name = "serde"
path = "tests/serde.rs"
[[test]]
name = "style_profile_dials"
path = "tests/style_profile_dials.rs"
[[test]]
name = "style_profile_neutral"
path = "tests/style_profile_neutral.rs"
[[test]]
name = "template_macro"
path = "tests/template_macro.rs"
[[test]]
name = "trybuild"
path = "tests/trybuild.rs"
[[bench]]
name = "engine"
path = "benches/engine.rs"
harness = false
[dependencies.ahash]
version = "0.8"
features = ["compile-time-rng"]
default-features = false
[dependencies.hashbrown]
version = "0.15"
features = [
"default-hasher",
"inline-more",
]
default-features = false
[dependencies.itoa]
version = "1"
default-features = false
[dependencies.prosaic-common]
version = "0.6.2"
default-features = false
[dependencies.rayon]
version = "1"
optional = true
[dependencies.serde]
version = "1"
features = [
"derive",
"alloc",
]
optional = true
default-features = false
[dependencies.serde_json]
version = "1"
features = ["alloc"]
optional = true
default-features = false
[dependencies.thiserror]
version = "2"
default-features = false
[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.trybuild]
version = "1"