# 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 = "foundry-local-sdk"
version = "1.0.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Local AI model inference powered by the Foundry Local Core engine"
homepage = "https://www.foundrylocal.ai/"
documentation = "https://github.com/microsoft/Foundry-Local/blob/main/sdk/rust/docs/api.md"
readme = "README.md"
license = "MIT"
repository = "https://github.com/microsoft/Foundry-Local"

[features]
default = []
nightly = []
winml = []

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

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

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

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

[[test]]
name = "integration"
path = "tests/integration/main.rs"

[dependencies.async-openai]
version = "0.33"
features = ["chat-completion-types"]
default-features = false

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

[dependencies.libloading]
version = "0.8"

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

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

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

[dependencies.tokio-stream]
version = "0.1"

[dependencies.urlencoding]
version = "2"

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

[build-dependencies.serde_json]
version = "1"

[build-dependencies.ureq]
version = "3"

[build-dependencies.zip]
version = "2"

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