# 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" rust-version = "1.79" name = "genai" version = "0.1.15" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Multi-AI Providers Library for Rust. (Anthropic, OpenAI, Gemini, xAI, Ollama, Groq, ...)" homepage = "https://github.com/jeremychone/rust-genai" readme = "README.md" keywords = [ "generative-ai", "openai", "chatgpt", "gemini", "ollama", ] license = "MIT OR Apache-2.0" repository = "https://github.com/jeremychone/rust-genai" [lib] name = "genai" path = "src/lib.rs" [[example]] name = "c00-readme" path = "examples/c00-readme.rs" [[example]] name = "c01-conv" path = "examples/c01-conv.rs" [[example]] name = "c02-auth" path = "examples/c02-auth.rs" [[example]] name = "c03-mapper" path = "examples/c03-mapper.rs" [[example]] name = "c04-chat-options" path = "examples/c04-chat-options.rs" [[example]] name = "c05-model-names" path = "examples/c05-model-names.rs" [[example]] name = "c06-target-resolver" path = "examples/c06-target-resolver.rs" [[test]] name = "tests_p_anthropic" path = "tests/tests_p_anthropic.rs" [[test]] name = "tests_p_cohere" path = "tests/tests_p_cohere.rs" [[test]] name = "tests_p_gemini" path = "tests/tests_p_gemini.rs" [[test]] name = "tests_p_groq" path = "tests/tests_p_groq.rs" [[test]] name = "tests_p_ollama" path = "tests/tests_p_ollama.rs" [[test]] name = "tests_p_openai" path = "tests/tests_p_openai.rs" [[test]] name = "tests_p_xai" path = "tests/tests_p_xai.rs" [dependencies.bytes] version = "1.6" [dependencies.derive_more] version = "1.0.0" features = [ "from", "display", ] [dependencies.eventsource-stream] version = "0.2" [dependencies.futures] version = "0.3" [dependencies.reqwest] version = "0.12" features = ["json"] [dependencies.reqwest-eventsource] version = "0.6" [dependencies.serde] version = "1" features = [ "derive", "rc", ] [dependencies.serde_json] version = "1" [dependencies.tokio] version = "1" features = ["full"] [dependencies.tokio-stream] version = "0.1" [dependencies.value-ext] version = "0.0.3" [dev-dependencies.serial_test] version = "3.2.0" [lints.rust] unsafe_code = "forbid"