switchyard-translation 0.2.0

Pure Rust request, response, and stream translation for Switchyard
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.96.1"
name = "switchyard-translation"
version = "0.2.0"
authors = ["NVIDIA Corporation"]
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust request, response, and stream translation for Switchyard"
homepage = "https://github.com/NVIDIA-NeMo/Switchyard"
documentation = "https://docs.rs/switchyard-translation"
readme = "README.md"
keywords = [
    "llm",
    "translation",
    "openai",
    "anthropic",
]
license = "Apache-2.0"
repository = "https://github.com/NVIDIA-NeMo/Switchyard"

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

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

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

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

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

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

[dependencies.async-stream]
version = "0.3"

[dependencies.futures]
version = "0.3"

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

[dependencies.serde_json]
version = "1"

[dependencies.switchyard-protocol]
version = "0.2.0"

[dependencies.thiserror]
version = "2"

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