yapi-types 0.1.0

Serde types for pi's JSON formats: messages, events, session entries, settings, models and extension payloads.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.91"
name = "yapi-types"
version = "0.1.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Serde types for pi's JSON formats: messages, events, session entries, settings, models and extension payloads."
readme = "README.md"
keywords = [
    "pi",
    "agent",
    "llm",
    "serde",
    "json",
]
categories = ["data-structures"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/SkymanOne/yapi"

[lib]
name = "yapi_types"
path = "src/lib.rs"

[[test]]
name = "golden"
path = "tests/golden.rs"

[dependencies.getrandom]
version = "0.4"

[dependencies.indexmap]
version = "2"
features = ["serde"]

[dependencies.ryu-js]
version = "1"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"
features = [
    "float_roundtrip",
    "preserve_order",
]

[lints.clippy]
dbg_macro = "warn"
print_stderr = "warn"
print_stdout = "warn"
unwrap_used = "warn"

[lints.rust]
missing_docs = "warn"