# 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 = "copilot-rs"
version = "0.1.2"
authors = ["Solaren <zhouxiaolinux@gmail.com>"]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust SDK for interacting with chat models, providing easy-to-use functions and tools."
readme = "README.md"
keywords = [
    "rust",
    "chat-model",
    "sdk",
    "function-tools",
    "macro",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/ZhouXiaolin/copilot-rs.git"

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

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

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

[dependencies.copilot-rs-macro]
version = "0.1.1"
optional = true

[dependencies.once_cell]
version = "1.20.2"

[dependencies.reqwest]
version = "0.12.8"
features = [
    "stream",
    "blocking",
    "json",
]

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

[dependencies.serde_json]
version = "1.0.128"

[dependencies.typed-builder]
version = "0.20.0"

[features]
default = ["macro"]
macro = ["copilot-rs-macro"]