typesafe-rs 0.1.0

Rust client for TypeSafe's 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.85"
name = "typesafe-rs"
version = "0.1.0"
authors = ["Abdel Bakhta"]
build = "build.rs"
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust client for TypeSafe's System One API"
homepage = "https://github.com/AbdelStark/typesafe-rs"
documentation = "https://docs.rs/typesafe-rs"
readme = "README.md"
keywords = [
    "typesafe",
    "sdk",
    "system-one",
    "ai",
    "http-client",
]
categories = [
    "api-bindings",
    "web-programming::http-client",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/AbdelStark/typesafe-rs"

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

[features]
blocking = [
    "tokio/rt",
    "tokio/net",
]
default = [
    "rustls",
    "tracing",
]
native-tls = ["reqwest/native-tls"]
rustls = ["reqwest/rustls"]
tracing = ["dep:tracing"]

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

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

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

[[example]]
name = "quickstart"
path = "examples/quickstart.rs"
doc-scrape-examples = true

[[example]]
name = "triage"
path = "examples/triage.rs"
doc-scrape-examples = true

[[test]]
name = "blocking"
path = "tests/blocking.rs"
required-features = ["blocking"]

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

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

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

[dependencies.bytes]
version = "1"

[dependencies.fastrand]
version = "2"

[dependencies.http]
version = "1"

[dependencies.httpdate]
version = "1"

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

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "http2",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["time"]
default-features = false

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

[dependencies.url]
version = "2"

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

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "time",
    "net",
]
default-features = false

[dev-dependencies.typesafe-rs-mock]
version = "0.1.0"

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