modelsocket 0.5.1

A Rust library for ModelSocket, a protocol for efficiently integrating with LLMs
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"
name = "modelsocket"
version = "0.5.1"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust library for ModelSocket, a protocol for efficiently integrating with LLMs"
readme = "README.md"
keywords = [
    "modelsocket",
    "ai",
    "llm",
]
license = "Apache-2.0"

[features]
client = [
    "dep:anyhow",
    "dep:futures",
    "dep:futures-util",
    "dep:http",
    "dep:serde_json",
    "dep:thiserror",
    "dep:tokio",
    "dep:tokio-tungstenite",
    "dep:tracing",
    "dep:url",
    "dep:uuid",
]
default = ["client"]
python = [
    "client",
    "dep:pyo3",
    "dep:once_cell",
]

[lib]
name = "modelsocket"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

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

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

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

[dependencies.anyhow]
version = "1.0.100"
optional = true

[dependencies.async-trait]
version = "0.1.89"

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.http]
version = "1"
optional = true

[dependencies.once_cell]
version = "1.19"
optional = true

[dependencies.pyo3]
version = "0.27"
features = [
    "extension-module",
    "abi3-py39",
]
optional = true

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

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

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.thiserror]
version = "1"
optional = true

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

[dependencies.tokio-tungstenite]
version = "0.23.1"
features = ["rustls-tls-native-roots"]
optional = true

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

[dependencies.url]
version = "2.5"
optional = true

[dependencies.uuid]
version = "1.9"
features = ["v4"]
optional = true

[dev-dependencies.anyhow]
version = "1.0.100"

[dev-dependencies.clap]
version = "4.5.51"
features = [
    "derive",
    "env",
]

[dev-dependencies.colorize]
version = "0.1.0"

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.meval]
version = "0.2.0"

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

[dev-dependencies.tracing-subscriber]
version = "0.3.20"