# 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 = "rag-toolchain" version = "0.1.9" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "is a Rust native library designed to empower developers with seamless access to common Gen AI workflows." readme = "README.md" license = "MIT" repository = "https://github.com/JackMatthewRimmer/rust-rag-toolchain" [lib] name = "rag_toolchain" crate-type = ["lib"] path = "src/lib.rs" [[example]] name = "anthropic_chat_completions" path = "examples/anthropic_chat_completions/main.rs" [[example]] name = "basic_rag_chain_example" path = "examples/basic_rag_chain/main.rs" [[example]] name = "chat_history_chain_example" path = "examples/chat_history_chain/main.rs" [[example]] name = "open_ai_chat_completion_example" path = "examples/open_ai_chat_completions/main.rs" [[example]] name = "pg_vector_example" path = "examples/pg_vector/main.rs" required-features = ["pg_vector"] [[test]] name = "mod" path = "tests/mod.rs" [dependencies.dotenv] version = "0.15.0" [dependencies.eventsource-stream] version = "0.2.3" optional = true [dependencies.futures] version = "0.3.31" [dependencies.pgvector] version = "0.4.0" features = ["sqlx"] optional = true [dependencies.reqwest] version = "0.12.8" features = ["json"] [dependencies.reqwest-eventsource] version = "0.6.0" optional = true [dependencies.serde] version = "1.0.200" features = ["derive"] [dependencies.serde_json] version = "1.0.116" [dependencies.sqlx] version = "0.8.0" features = [ "postgres", "runtime-tokio-rustls", "json", ] [dependencies.thiserror] version = "1.0.61" [dependencies.tiktoken-rs] version = "0.5.8" [dependencies.tokio] version = "1.37" features = ["full"] [dependencies.typed-builder] version = "0.20.0" [dev-dependencies.lazy_static] version = "1.4.0" [dev-dependencies.mockall] version = "0.13.0" [dev-dependencies.mockito] version = "1.4.0" [dev-dependencies.testcontainers] version = "0.23.1" [features] anthropic = [] default = [ "pg_vector", "openai", "anthropic", ] openai = [ "dep:reqwest-eventsource", "dep:eventsource-stream", ] pg_vector = ["dep:pgvector"]