system2 0.1.0

An (unofficial) idiomatic Rust SDK for TypeSafe's System One model, 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.88"
name = "system2"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An (unofficial) idiomatic Rust SDK for TypeSafe's System One model, Jev."
readme = "README.md"
keywords = [
    "jev",
    "typesafe",
    "llm",
    "decision",
    "classification",
]
categories = [
    "api-bindings",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/jhartquist/system2"

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

[features]
image = [
    "dep:image",
    "system2-shared/image",
    "system2-macros/image",
]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.base64]
version = "0.23"

[dependencies.hex]
version = "0.4"
features = ["serde"]

[dependencies.httpdate]
version = "1"

[dependencies.image]
version = "0.25.10"
optional = true
default-features = false

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

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

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

[dependencies.sha2]
version = "0.11"

[dependencies.system2-macros]
version = "=0.1.0"

[dependencies.system2-shared]
version = "=0.1.0"

[dependencies.thiserror]
version = "2"

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

[dependencies.tracing]
version = "0.1"
features = ["std"]
default-features = false

[dependencies.zstd]
version = "0.14"

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

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["registry"]
default-features = false

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

[dev-dependencies.wiremock]
version = "0.6"

[lints.clippy]
dbg_macro = "deny"
expect_used = "deny"
float_cmp = "allow"
unwrap_used = "deny"

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
missing_docs = "deny"
unreachable_pub = "deny"
unsafe_code = "deny"