# 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 = "mini-openai" version = "0.1.2" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "An OpenAI API client with minimal dependencies" homepage = "https://github.com/Papierkorb/mini_openai" readme = "README.md" keywords = [ "llm", "openai", "ollama", "ai", "chatgpt", ] categories = [ "api-bindings", "text-processing", ] license = "BSD-2-Clause" repository = "https://github.com/Papierkorb/mini_openai" [package.metadata.docs.rs] features = ["reqwest"] [lib] name = "mini_openai" path = "src/lib.rs" [[example]] name = "async-chat-completion" path = "examples/async/chat_completion.rs" required-features = ["reqwest"] [[example]] name = "async-embedding" path = "examples/async/embedding.rs" required-features = ["reqwest"] [[example]] name = "async-json" path = "examples/async/json.rs" required-features = ["reqwest"] [[example]] name = "sync-chat-completion" path = "examples/sync/chat_completion.rs" required-features = ["ureq"] [[example]] name = "sync-embedding" path = "examples/sync/embedding.rs" required-features = ["ureq"] [[example]] name = "sync-json" path = "examples/sync/json.rs" required-features = ["ureq"] [dependencies.reqwest] version = "0.12.8" optional = true [dependencies.serde] version = ">= 1.0" features = ["derive"] [dependencies.serde_json] version = ">= 1.0" [dependencies.thiserror] version = "1.0.64" [dependencies.ureq] version = "2.10.1" optional = true [dev-dependencies.tokio] version = "1" features = [ "macros", "rt-multi-thread", ] [features] reqwest = ["dep:reqwest"] ureq = ["dep:ureq"]