# 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" version = "1.0.0-alpha.16" authors = [ "Lorenzo Fontoura ", "valentinegb", ] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "An unofficial Rust library for the OpenAI API." readme = "README.md" keywords = [ "ai", "machine-learning", "openai", "library", ] license = "MIT" repository = "https://github.com/rellfy/openai" [lib] name = "openai" path = "src/lib.rs" [[example]] name = "chat_cli" path = "examples/chat_cli.rs" [[example]] name = "chat_stream_cli" path = "examples/chat_stream_cli.rs" [[example]] name = "completions_cli" path = "examples/completions_cli.rs" [dependencies.anyhow] version = "1.0.70" [dependencies.bytes] version = "1.4.0" [dependencies.derive_builder] version = "0.20.0" [dependencies.futures-util] version = "0.3.28" [dependencies.reqwest] version = "0.12" features = [ "json", "stream", "multipart", ] optional = true default-features = false [dependencies.reqwest-eventsource] version = "0.6" [dependencies.serde] version = "1.0.157" features = ["derive"] [dependencies.serde_json] version = "1.0.94" [dependencies.tokio] version = "1.26.0" features = ["full"] [dev-dependencies.dotenvy] version = "0.15.7" [features] default = ["native-tls"] native-tls = ["reqwest/native-tls"] rustls = ["reqwest/rustls-tls"]