# 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 = "openai_dive" version = "0.6.6" description = "OpenAI Dive is an unofficial async Rust library that allows you to interact with the OpenAI API." documentation = "https://docs.rs/openai_dive" readme = "README.md" keywords = [ "openai", "async", "ai", "chatgpt", ] license = "MIT" repository = "https://github.com/tjardoo/openai-client" [lib] doctest = false [dependencies.base64] version = "0.22" optional = true [dependencies.bytes] version = "1.5.0" features = ["serde"] [dependencies.derive_builder] version = "0.20.0" [dependencies.futures] version = "0.3" optional = true [dependencies.log] version = "0.4" optional = true [dependencies.reqwest] version = "0.12" features = [ "json", "stream", "multipart", ] optional = true default-features = false [dependencies.reqwest-eventsource] version = "0.6.0" optional = true [dependencies.reqwest-websocket] version = "0.4" optional = true [dependencies.serde] version = "1" features = ["derive"] [dependencies.serde_json] version = "1.0" [dependencies.tokio] version = "1" features = [] optional = true [dependencies.tokio-stream] version = "0.1" optional = true [dependencies.tokio-util] version = "0.7" features = ["codec"] optional = true [features] default = [ "reqwest", "tokio", "tokio-util", "reqwest/default-tls", ] download = [ "dep:futures", "dep:base64", ] realtime = ["reqwest-websocket"] rustls-tls = ["reqwest/rustls-tls"] stream = [ "dep:reqwest-eventsource", "dep:futures", "dep:tokio-stream", ]