Skip to content

Switchyard lets LLM applications route traffic across models and providers while preserving native OpenAI and Anthropic API compatibility - enabling flexible model selection, benchmarking, and cost/performance optimization.

Rust
853 B
Raw Blame
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

[package]
name = "switchyard-ffi"
version.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
publish = false

[lib]
crate-type = ["cdylib", "staticlib"]

[dependencies]
futures.workspace = true
parking_lot.workspace = true
serde.workspace = true
serde_json.workspace = true
switchyard-libsy.workspace = true
switchyard-protocol.workspace = true
switchyard-runner.workspace = true
switchyard-translation.workspace = true
tokio-util = { version = "0.7", features = ["rt"] }

[target.'cfg(not(target_os = "wasi"))'.dependencies]
tokio.workspace = true

[target.'cfg(target_os = "wasi")'.dependencies]
tokio = { version = "1", features = ["rt", "sync", "macros", "time"] }