basal-client 0.7.0

Async Rust client for the native Basal HTTP 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 = "2021"
rust-version = "1.95"
name = "basal-client"
version = "0.7.0"
build = false
include = [
    "src/**",
    "examples/**",
    "Cargo.toml",
    "README.md",
    "LICENSE",
    "NOTICE",
]
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async Rust client for the native Basal HTTP API"
readme = "README.md"
keywords = [
    "basal",
    "inference",
    "sdk",
    "client",
]
categories = ["api-bindings"]
license = "Apache-2.0"
repository = "https://github.com/itsoltech/basal-rs"

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

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

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

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

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

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1"

[dependencies.http]
version = "1"

[dependencies.http-body-util]
version = "0.1"

[dependencies.hyper-rustls]
version = "0.27"
features = [
    "http1",
    "ring",
    "tls12",
    "rustls-platform-verifier",
]
default-features = false

[dependencies.hyper-util]
version = "0.1"
features = [
    "client-legacy",
    "http1",
    "tokio",
]
default-features = false

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

[dependencies.rustls]
version = "0.23.46"
features = [
    "std",
    "ring",
    "tls12",
]
default-features = false

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

[dependencies.serde_json]
version = "1"
features = [
    "preserve_order",
    "float_roundtrip",
    "arbitrary_precision",
]

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

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

[lints.clippy]
allow_attributes_without_reason = "deny"
dbg_macro = "deny"
todo = "deny"
undocumented_unsafe_blocks = "deny"
unimplemented = "deny"

[lints.rust]
unsafe_op_in_unsafe_fn = "deny"