# 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 = "chatgpt_rs_fork" version = "1.2.4" authors = ["Maxuss "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "ChatGPT API Wrapper" readme = "README.md" keywords = [ "ChatGPT", "OpenAI", ] categories = ["api-bindings"] license = "MIT" repository = "https://github.com/Maxuss/chatgpt_rs" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "chatgpt" path = "src/chatgpt.rs" [[example]] name = "basic" path = "examples/basic.rs" [[example]] name = "bin_persistence" path = "examples/bin_persistence.rs" [[example]] name = "conversation" path = "examples/conversation.rs" [[example]] name = "conversation_directed" path = "examples/conversation_directed.rs" [[example]] name = "function_calls" path = "examples/function_calls.rs" [[example]] name = "json_persistence" path = "examples/json_persistence.rs" [[example]] name = "proxying" path = "examples/proxying.rs" [[example]] name = "streamed" path = "examples/streamed.rs" [[example]] name = "streamed_conversation" path = "examples/streamed_conversation.rs" [dependencies.async-recursion] version = "1.0.5" optional = true [dependencies.async-trait] version = "0.1.73" optional = true [dependencies.bytes] version = "1.7.1" [dependencies.derive_builder] version = "0.12.0" [dependencies.futures] version = "0.3.28" optional = true [dependencies.futures-util] version = "0.3.28" optional = true [dependencies.gpt_fn_macros] version = "1.0.0" optional = true [dependencies.postcard] version = "1.0.7" features = ["alloc"] optional = true [dependencies.reqwest] version = "0.12.0" features = [ "json", "rustls-tls", ] default-features = false [dependencies.schemars] version = "0.8.13" optional = true [dependencies.serde] version = "1.0.188" features = ["derive"] [dependencies.serde_json] version = "1.0.107" optional = true [dependencies.thiserror] version = "1.0.48" [dependencies.tokio] version = "1.32.0" features = ["macros"] [dependencies.url] version = "2.4.1" features = ["serde"] [dev-dependencies.lazy_static] version = "1.4.0" [dev-dependencies.tokio] version = "1.32.0" features = [ "macros", "rt-multi-thread", ] [features] default = ["json"] functions = [ "dep:gpt_fn_macros", "dep:schemars", "dep:async-trait", "dep:serde_json", "dep:async-recursion", ] functions_extra = [ "schemars/chrono", "schemars/url", "schemars/uuid1", "schemars/either", ] json = [ "dep:serde_json", "tokio/fs", ] postcard = [ "dep:postcard", "tokio/fs", ] streams = [ "dep:futures-util", "dep:futures", "reqwest/stream", ]