[package]
edition = "2024"
rust-version = "1.87"
name = "typesafe-client"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unofficial typed async Rust client for the TypeSafe System One API"
documentation = "https://docs.rs/typesafe-client"
readme = "README.md"
keywords = [
"typesafe",
"ai",
"classification",
"api-client",
"llm",
]
categories = [
"api-bindings",
"web-programming::http-client",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/JedimEmO/typesafe-client"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["http"]
fake = []
http = [
"dep:fastrand",
"dep:httpdate",
"dep:reqwest",
"dep:tokio",
]
[lib]
name = "typesafe_client"
path = "src/lib.rs"
[[example]]
name = "audit"
path = "examples/audit.rs"
required-features = ["http"]
[[example]]
name = "triage"
path = "examples/triage.rs"
required-features = ["http"]
[[test]]
name = "docs_examples"
path = "tests/docs_examples.rs"
[[test]]
name = "fake"
path = "tests/fake.rs"
[[test]]
name = "http_client"
path = "tests/http_client.rs"
required-features = ["http"]
[[test]]
name = "live"
path = "tests/live.rs"
required-features = ["http"]
[[test]]
name = "openapi_contract"
path = "tests/openapi_contract.rs"
[dependencies.async-trait]
version = "0.1.80"
[dependencies.fastrand]
version = "2.3"
optional = true
[dependencies.httpdate]
version = "1.0"
optional = true
[dependencies.indexmap]
version = "2.7"
features = ["serde"]
[dependencies.reqwest]
version = "0.13"
features = [
"http2",
"rustls",
]
optional = true
default-features = false
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.43"
features = ["time"]
optional = true
[dev-dependencies.jsonschema]
version = "0.56"
default-features = false
[dev-dependencies.reqwest]
version = "0.13"
features = [
"http2",
"rustls",
"json",
]
default-features = false
[dev-dependencies.tokio]
version = "1.43"
features = [
"time",
"macros",
"rt-multi-thread",
]
[dev-dependencies.wiremock]
version = "0.6"
[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
unwrap_used = "warn"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "deny"