ferrin-spec 0.2.0

Ferrin provider specification: model traits, prompt and content types, stream parts, shared errors.
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.98"
name = "ferrin-spec"
version = "0.2.0"
authors = ["Ferrin contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ferrin provider specification: model traits, prompt and content types, stream parts, shared errors."
readme = "README.md"
keywords = [
    "ai",
    "llm",
    "sdk",
]
categories = [
    "api-bindings",
    "asynchronous",
]
license = "Apache-2.0"
repository = "https://github.com/f4tumnigrum/ferrin"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

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

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

[dependencies.base64]
version = "0.23"

[dependencies.bytes]
version = "1.12"

[dependencies.chrono]
version = "0.4"
features = [
    "clock",
    "serde",
    "std",
]
default-features = false

[dependencies.futures-core]
version = "0.3"
default-features = false

[dependencies.http]
version = "1.5"

[dependencies.regex]
version = "1.13"

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

[dependencies.serde_json]
version = "1.0"
features = [
    "preserve_order",
    "raw_value",
]

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio-util]
version = "0.7"
default-features = false

[dependencies.url]
version = "2.5"
features = ["serde"]

[dev-dependencies.pretty_assertions]
version = "1.4"

[dev-dependencies.serde_json]
version = "1.0"
features = [
    "preserve_order",
    "raw_value",
]

[dev-dependencies.static_assertions]
version = "1.1"

[lints.clippy]
await_holding_invalid_type = "deny"
await_holding_lock = "deny"
dbg_macro = "deny"
disallowed_methods = "deny"
expect_used = "deny"
identity_op = "deny"
large_futures = "warn"
manual_clamp = "deny"
manual_filter = "deny"
manual_find = "deny"
manual_flatten = "deny"
manual_map = "deny"
manual_memcpy = "deny"
manual_non_exhaustive = "deny"
manual_ok_or = "deny"
manual_range_contains = "deny"
manual_retain = "deny"
manual_strip = "deny"
manual_try_fold = "deny"
manual_unwrap_or = "deny"
needless_borrow = "deny"
needless_borrowed_reference = "deny"
needless_collect = "deny"
needless_late_init = "deny"
needless_option_as_deref = "deny"
needless_question_mark = "deny"
needless_update = "deny"
print_stderr = "deny"
print_stdout = "deny"
redundant_clone = "deny"
redundant_closure = "deny"
redundant_closure_for_method_calls = "deny"
redundant_static_lifetimes = "deny"
todo = "deny"
trivially_copy_pass_by_ref = "deny"
unimplemented = "deny"
uninlined_format_args = "deny"
unnecessary_filter_map = "deny"
unnecessary_lazy_evaluations = "deny"
unnecessary_sort_by = "deny"
unnecessary_to_owned = "deny"
unwrap_used = "deny"

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_qualifications = "warn"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(docsrs)"]