# 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.65" name = "async-openai-wasm" version = "0.26.0" authors = [ "Contributors of the async-openai crate", "ifsheldon ", ] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Rust library for OpenAI on WASM" homepage = "https://github.com/ifsheldon/async-openai-wasm" readme = "README.md" keywords = [ "openai", "async", "openapi", "ai", "wasm", ] categories = [ "api-bindings", "web-programming", "asynchronous", ] license = "MIT" repository = "https://github.com/ifsheldon/async-openai-wasm" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "async_openai_wasm" path = "src/lib.rs" [[test]] name = "completion" path = "tests/completion.rs" [[test]] name = "embeddings" path = "tests/embeddings.rs" [[test]] name = "ser_de" path = "tests/ser_de.rs" [[test]] name = "whisper" path = "tests/whisper.rs" [dependencies.async-convert] version = "1.0" [dependencies.base64] version = "0.22" [dependencies.bytes] version = "1.7" [dependencies.derive_builder] version = "0.20" [dependencies.eventsource-stream] version = "0.2" [dependencies.futures] version = "0.3" [dependencies.getrandom] version = "0.2" features = ["js"] [dependencies.pin-project] version = "1.1" [dependencies.rand] version = "0.8" [dependencies.reqwest] version = "0.12" features = [ "json", "stream", "multipart", ] default-features = false [dependencies.reqwest-eventsource] version = "0.6" [dependencies.secrecy] version = "0.10" features = ["serde"] [dependencies.serde] version = "1.0" features = [ "derive", "rc", ] [dependencies.serde_json] version = "1.0" [dependencies.thiserror] version = "1.0" [dependencies.tracing] version = "0.1" [dev-dependencies.tokio] version = "1.40" features = [ "fs", "macros", ] [dev-dependencies.tokio-test] version = "0.4" [features] default = ["rustls"] native-tls = ["reqwest/native-tls"] native-tls-vendored = ["reqwest/native-tls-vendored"] realtime = [] rustls = ["reqwest/rustls-tls-native-roots"] rustls-webpki-roots = ["reqwest/rustls-tls-webpki-roots"]