typesafe-sdk-rust 0.1.1

Async Rust SDK for the TypeSafe AI System One API
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 = "typesafe-sdk-rust"
version = "0.1.1"
build = false
include = [
    "/src",
    "/examples",
    "/README.md",
    "/LICENSE",
    "/LICENSE-THIRD-PARTY",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async Rust SDK for the TypeSafe AI System One API"
readme = "README.md"
keywords = [
    "typesafe",
    "ai",
    "llm",
    "sdk",
    "async",
]
categories = [
    "api-bindings",
    "asynchronous",
]
license = "Apache-2.0"
repository = "https://github.com/zchee/typesafe-sdk-rust"

[features]
default = [
    "macros",
    "tracing",
]
internals = []
macros = ["dep:typesafe-sdk-rust-macros"]
tracing = ["dep:tracing"]

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

[[example]]
name = "concurrency"
path = "examples/concurrency.rs"

[[example]]
name = "quickstart"
path = "examples/quickstart.rs"

[[example]]
name = "typed_answers"
path = "examples/typed_answers.rs"
required-features = ["macros"]

[dependencies.bytes]
version = "1.12.1"

[dependencies.compact_str]
version = "0.10.0"
features = ["std"]
default-features = false

[dependencies.fastrand]
version = "2.5.0"

[dependencies.http]
version = "1.5.0"

[dependencies.http-body]
version = "1.1.0"

[dependencies.http-body-util]
version = "0.1.5"

[dependencies.httpdate]
version = "1.0.3"

[dependencies.hyper]
version = "1.11.1"
features = [
    "client",
    "http1",
    "http2",
]

[dependencies.hyper-rustls]
version = "0.27.9"
features = [
    "http1",
    "http2",
    "tls12",
    "aws-lc-rs",
]
default-features = false

[dependencies.hyper-util]
version = "0.1.20"
features = [
    "client-legacy",
    "http1",
    "http2",
    "tokio",
]

[dependencies.rustls]
version = "0.23.45"

[dependencies.rustls-platform-verifier]
version = "0.7.0"

[dependencies.secrecy]
version = "0.10.3"

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

[dependencies.serde_path_to_error]
version = "0.1.20"

[dependencies.sonic-rs]
version = "0.5.10"

[dependencies.thiserror]
version = "2.0.20"

[dependencies.tokio]
version = "1.53.1"
features = [
    "rt",
    "time",
]

[dependencies.tower-service]
version = "0.3.3"

[dependencies.tracing]
version = "0.1.44"
optional = true

[dependencies.typesafe-sdk-rust-macros]
version = "=0.1.0"
optional = true

[dev-dependencies.codspeed-divan-compat]
version = "5.0.2"

[dev-dependencies.dhat]
version = "0.3.3"

[dev-dependencies.proptest]
version = "1.11.0"

[dev-dependencies.serde_json]
version = "1.0.151"
features = ["float_roundtrip"]

[dev-dependencies.tokio]
version = "1.53.1"
features = [
    "rt",
    "time",
    "io-util",
    "macros",
    "net",
    "rt-multi-thread",
    "sync",
]

[dev-dependencies.trybuild]
version = "1.0.121"

[lints.clippy]
unwrap_used = "deny"

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