otari 0.0.1

A unified Rust SDK for interacting with LLMs via the Otari gateway
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 = "2021"
rust-version = "1.83"
name = "otari"
version = "0.0.1"
authors = ["Mozilla AI <otari@mozilla.ai>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A unified Rust SDK for interacting with LLMs via the Otari gateway"
homepage = "https://github.com/mozilla-ai/otari-sdk-rust"
documentation = "https://docs.rs/otari"
readme = "README.md"
keywords = [
    "llm",
    "ai",
    "gateway",
    "api-gateway",
    "otari",
]
categories = [
    "api-bindings",
    "asynchronous",
    "web-programming",
]
license = "Apache-2.0"
repository = "https://github.com/mozilla-ai/otari-sdk-rust"

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

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

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

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

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

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

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

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

[dependencies.futures]
version = "0.3"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "stream",
]

[dependencies.reqwest-eventsource]
version = "0.6"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]

[dev-dependencies.dotenvy]
version = "0.15"

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

[dev-dependencies.tokio-test]
version = "0.4"

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

[lints.clippy]
assigning_clones = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cognitive_complexity = "allow"
default_trait_access = "allow"
derivable_impls = "allow"
derive_partial_eq_without_eq = "allow"
doc_markdown = "allow"
future_not_send = "allow"
if_not_else = "allow"
items_after_statements = "allow"
manual_let_else = "allow"
map_unwrap_or = "allow"
match_bool = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_continue = "allow"
needless_pass_by_value = "allow"
option_if_let_else = "allow"
or_fun_call = "allow"
redundant_closure = "allow"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
redundant_pub_crate = "allow"
ref_option = "allow"
return_self_not_must_use = "allow"
should_implement_trait = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unnecessary_cast = "allow"
unnecessary_wraps = "allow"
use_self = "allow"
useless_vec = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

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

[lints.rust]
unsafe_code = "forbid"