[package]
edition = "2024"
name = "rstructor_derive"
version = "0.5.1"
authors = ["Clifton King <cliftonk@gmail.com>"]
build = false
exclude = [
"*.orig",
"*.bak",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Derive macros for rstructor: generate JSON Schema from Rust structs and enums to extract structured, validated outputs from LLMs (the Instructor pattern for Rust)."
documentation = "https://docs.rs/rstructor_derive"
readme = false
keywords = [
"derive",
"json-schema",
"llm",
"instructor",
"structured-output",
]
categories = [
"development-tools::procedural-macro-helpers",
"api-bindings",
"parsing",
]
license = "MIT"
repository = "https://github.com/clifton/rstructor"
[lib]
name = "rstructor_derive"
path = "src/lib.rs"
proc-macro = true
[[test]]
name = "array_literal_tests"
path = "tests/array_literal_tests.rs"
[[test]]
name = "date_format_tests"
path = "tests/date_format_tests.rs"
[[test]]
name = "diagnostic_schema_stability_tests"
path = "tests/diagnostic_schema_stability_tests.rs"
[[test]]
name = "edge_cases_tests"
path = "tests/edge_cases_tests.rs"
[[test]]
name = "enum_date_format_tests"
path = "tests/enum_date_format_tests.rs"
[[test]]
name = "enum_with_data_tests"
path = "tests/enum_with_data_tests.rs"
[[test]]
name = "internally_tagged_tests"
path = "tests/internally_tagged_tests.rs"
[[test]]
name = "schema_identity_recursion_tests"
path = "tests/schema_identity_recursion_tests.rs"
[[test]]
name = "serde_deserialization_contract_tests"
path = "tests/serde_deserialization_contract_tests.rs"
[[test]]
name = "ui"
path = "tests/ui.rs"
[dependencies.proc-macro2]
version = "1.0.107"
[dependencies.quote]
version = "1.0.47"
[dependencies.serde_json]
version = "1.0.151"
[dependencies.syn]
version = "3.0.3"
features = ["full"]
[dev-dependencies.chrono]
version = "0.4.45"
features = ["serde"]
[dev-dependencies.serde]
version = "1.0.229"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1.0.151"
[dev-dependencies.trybuild]
version = "1.0.118"
[dev-dependencies.uuid]
version = "1.24.0"
features = ["serde"]