# 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 = "deepgram" version = "0.6.2" authors = ["Deepgram "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Official Rust SDK for Deepgram's automated speech recognition APIs." readme = "README.md" keywords = [ "transcription", "voice-ai", "text-to-speech", "speech-to-text", "asr", ] categories = [ "api-bindings", "multimedia::audio", ] license = "MIT" repository = "https://github.com/deepgram/deepgram-rust-sdk" [lib] name = "deepgram" path = "src/lib.rs" [[example]] name = "callback" path = "examples/transcription/rest/callback.rs" required-features = ["listen"] [[example]] name = "callback_stream" path = "examples/transcription/websocket/callback_stream.rs" required-features = ["listen"] [[example]] name = "make_prerecorded_request_builder" path = "examples/transcription/rest/make_prerecorded_request_builder.rs" required-features = ["listen"] [[example]] name = "microphone_stream" path = "examples/transcription/websocket/microphone_stream.rs" required-features = ["listen"] [[example]] name = "prerecorded_from_file" path = "examples/transcription/rest/prerecorded_from_file.rs" required-features = ["listen"] [[example]] name = "prerecorded_from_url" path = "examples/transcription/rest/prerecorded_from_url.rs" required-features = ["listen"] [[example]] name = "simple_stream" path = "examples/transcription/websocket/simple_stream.rs" required-features = ["listen"] [[example]] name = "text_to_speech_to_file" path = "examples/speak/rest/text_to_speech_to_file.rs" required-features = ["speak"] [[example]] name = "text_to_speech_to_stream" path = "examples/speak/rest/text_to_speech_to_stream.rs" required-features = ["speak"] [dependencies.anyhow] version = "1.0.86" [dependencies.audio] version = "0.2.0" [dependencies.bytes] version = "1" [dependencies.futures] version = "0.3" [dependencies.http] version = "0.2" [dependencies.pin-project] version = "1" [dependencies.pkg-config] version = "0.3.30" optional = true [dependencies.proc-macro2] version = "1.0.60" [dependencies.reqwest] version = "0.11.22" features = [ "json", "rustls-tls", "stream", ] default-features = false [dependencies.rodio] version = "0.17.0" optional = true [dependencies.serde] version = "1.0.25" features = ["derive"] [dependencies.serde_json] version = "1" [dependencies.serde_urlencoded] version = "0.7" [dependencies.sha256] version = "1.5.0" [dependencies.thiserror] version = "1" [dependencies.tokio] version = "1.38.0" features = ["full"] [dependencies.tokio-stream] version = "0.1.15" [dependencies.tokio-tungstenite] version = "0.20.1" features = ["rustls-tls-webpki-roots"] optional = true [dependencies.tokio-util] version = "0.7.1" features = [ "codec", "io", ] [dependencies.tungstenite] version = "0.20.1" optional = true [dependencies.url] version = "2" [dependencies.uuid] version = "1" features = ["serde"] [dev-dependencies.cpal] version = "0.13" [dev-dependencies.crossbeam] version = "0.8" [features] default = [ "manage", "listen", "speak", ] listen = [ "dep:tungstenite", "dep:tokio-tungstenite", ] manage = [] speak = [ "dep:rodio", "dep:pkg-config", ]