typesafe-rust-sdk 0.1.0

Unofficial Rust client for TypeSafe's System One API (Jev)
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-rust-sdk"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unofficial Rust client for TypeSafe's System One API (Jev)"
readme = "README.md"
keywords = [
    "typesafe",
    "jev",
    "system-one",
    "classification",
    "api-client",
]
categories = [
    "api-bindings",
    "web-programming::http-client",
]
license = "MIT"
repository = "https://github.com/phiat/typesafe-rust-sdk"

[package.metadata.docs.rs]
all-features = true

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

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

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

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

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

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

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

[dependencies.fastrand]
version = "2"

[dependencies.httpdate]
version = "1"

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

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

[dependencies.serde_json]
version = "1"
features = ["raw_value"]

[dependencies.tokio]
version = "1"
features = ["time"]
optional = true

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

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