[INFO] cloning repository https://github.com/Shahrooze/simple-open-ai [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Shahrooze/simple-open-ai" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShahrooze%2Fsimple-open-ai", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShahrooze%2Fsimple-open-ai'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 848863cd63c32fc3f006bc3f26d29c99906e5dad [INFO] checking Shahrooze/simple-open-ai against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShahrooze%2Fsimple-open-ai" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Shahrooze/simple-open-ai on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Shahrooze/simple-open-ai [INFO] finished tweaking git repo https://github.com/Shahrooze/simple-open-ai [INFO] tweaked toml for git repo https://github.com/Shahrooze/simple-open-ai written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Shahrooze/simple-open-ai already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ab4f39bd4d2ec93dbba17cdf2955870d5dd8186826f49ec91236d5d1bafd18a7 [INFO] running `Command { std: "docker" "start" "-a" "ab4f39bd4d2ec93dbba17cdf2955870d5dd8186826f49ec91236d5d1bafd18a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ab4f39bd4d2ec93dbba17cdf2955870d5dd8186826f49ec91236d5d1bafd18a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab4f39bd4d2ec93dbba17cdf2955870d5dd8186826f49ec91236d5d1bafd18a7", kill_on_drop: false }` [INFO] [stdout] ab4f39bd4d2ec93dbba17cdf2955870d5dd8186826f49ec91236d5d1bafd18a7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3fe0371014d6e0d63921b1e43c6233c0ae4a68ec0c84b5242ba83057653f35f8 [INFO] running `Command { std: "docker" "start" "-a" "3fe0371014d6e0d63921b1e43c6233c0ae4a68ec0c84b5242ba83057653f35f8", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling openssl v0.10.59 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Compiling serde v1.0.192 [INFO] [stderr] Checking futures-sink v0.3.29 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Checking base64 v0.21.5 [INFO] [stderr] Checking strum v0.25.0 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking mio v0.8.9 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling openssl-sys v0.9.95 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.192 [INFO] [stderr] Compiling strum_macros v0.25.3 [INFO] [stderr] Checking tokio v1.33.0 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.21 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_json v1.0.108 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.22 [INFO] [stderr] Checking simple-open-ai v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/stt.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/transcriptions"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `text` is never read [INFO] [stdout] --> src/stt.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct OpenAiResponse { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 58 | pub text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_response_format`, `with_language`, `with_prompt`, and `with_temperature` are never used [INFO] [stdout] --> src/stt.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 79 | pub fn new(content: Vec) -> Request { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn with_language(mut self, language: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn with_prompt(mut self, prompt: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn with_temperature(mut self, temperature: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_text_from_voice` is never used [INFO] [stdout] --> src/stt.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | pub async fn get_text_from_voice(api_key: &str, req: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_response` is never used [INFO] [stdout] --> src/stt.rs:138:10 [INFO] [stdout] | [INFO] [stdout] 138 | async fn get_response(response_fromat: ResponseFormat, response: Response) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/tts.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/speech"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Mp3`, `Opus`, `Aac`, and `Flac` are never constructed [INFO] [stdout] --> src/tts.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum ResponseFormat { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 44 | #[serde(rename = "mp3")] [INFO] [stdout] 45 | Mp3, [INFO] [stdout] | ^^^ [INFO] [stdout] 46 | #[serde(rename = "opus")] [INFO] [stdout] 47 | Opus, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | #[serde(rename = "aac")] [INFO] [stdout] 49 | Aac, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | #[serde(rename = "flac")] [INFO] [stdout] 51 | Flac, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Alloy`, `Echo`, `Fable`, `Onyx`, `Nova`, and `Shimmer` are never constructed [INFO] [stdout] --> src/tts.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum Voice { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 55 | #[serde(rename = "alloy")] [INFO] [stdout] 56 | Alloy, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 57 | #[serde(rename = "echo")] [INFO] [stdout] 58 | Echo, [INFO] [stdout] | ^^^^ [INFO] [stdout] 59 | #[serde(rename = "fable")] [INFO] [stdout] 60 | Fable, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 61 | #[serde(rename = "onyx")] [INFO] [stdout] 62 | Onyx, [INFO] [stdout] | ^^^^ [INFO] [stdout] 63 | #[serde(rename = "nova")] [INFO] [stdout] 64 | Nova, [INFO] [stdout] | ^^^^ [INFO] [stdout] 65 | #[serde(rename = "shimmer")] [INFO] [stdout] 66 | Shimmer, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_response_format` are never used [INFO] [stdout] --> src/tts.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 69 | pub fn new(model: String, input: String, voice: Voice) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_voice_from_text` is never used [INFO] [stdout] --> src/tts.rs:82:14 [INFO] [stdout] | [INFO] [stdout] 82 | pub async fn get_voice_from_text(req: Request, api_key: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/error.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | Error(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 33 | Error(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `RequestError` is never constructed [INFO] [stdout] --> src/error.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum ApiError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 33 | Error(String), [INFO] [stdout] 34 | RequestError(reqwest::Error), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/chat.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const ENDPOINT: &str = "https://api.openai.com/v1/chat/completions"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `object`, `created`, `model`, `choices`, and `usage` are never read [INFO] [stdout] --> src/chat.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct ChatCompletionResponse { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 60 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 61 | pub object: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 62 | pub created: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 63 | pub model: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 64 | // pub system_fingerprint: String, [INFO] [stdout] 65 | pub choices: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 66 | pub usage: Usage, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChatCompletionResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_text` is never used [INFO] [stdout] --> src/chat.rs:88:14 [INFO] [stdout] | [INFO] [stdout] 88 | pub async fn send_text<'a>( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/stt.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/transcriptions"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `text` is never read [INFO] [stdout] --> src/stt.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct OpenAiResponse { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 58 | pub text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_response_format`, `with_language`, `with_prompt`, and `with_temperature` are never used [INFO] [stdout] --> src/stt.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 79 | pub fn new(content: Vec) -> Request { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn with_language(mut self, language: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn with_prompt(mut self, prompt: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn with_temperature(mut self, temperature: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_text_from_voice` is never used [INFO] [stdout] --> src/stt.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | pub async fn get_text_from_voice(api_key: &str, req: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_response` is never used [INFO] [stdout] --> src/stt.rs:138:10 [INFO] [stdout] | [INFO] [stdout] 138 | async fn get_response(response_fromat: ResponseFormat, response: Response) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/tts.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/speech"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Mp3`, `Opus`, `Aac`, and `Flac` are never constructed [INFO] [stdout] --> src/tts.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum ResponseFormat { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 44 | #[serde(rename = "mp3")] [INFO] [stdout] 45 | Mp3, [INFO] [stdout] | ^^^ [INFO] [stdout] 46 | #[serde(rename = "opus")] [INFO] [stdout] 47 | Opus, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | #[serde(rename = "aac")] [INFO] [stdout] 49 | Aac, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | #[serde(rename = "flac")] [INFO] [stdout] 51 | Flac, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Alloy`, `Echo`, `Fable`, `Onyx`, `Nova`, and `Shimmer` are never constructed [INFO] [stdout] --> src/tts.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum Voice { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 55 | #[serde(rename = "alloy")] [INFO] [stdout] 56 | Alloy, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 57 | #[serde(rename = "echo")] [INFO] [stdout] 58 | Echo, [INFO] [stdout] | ^^^^ [INFO] [stdout] 59 | #[serde(rename = "fable")] [INFO] [stdout] 60 | Fable, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 61 | #[serde(rename = "onyx")] [INFO] [stdout] 62 | Onyx, [INFO] [stdout] | ^^^^ [INFO] [stdout] 63 | #[serde(rename = "nova")] [INFO] [stdout] 64 | Nova, [INFO] [stdout] | ^^^^ [INFO] [stdout] 65 | #[serde(rename = "shimmer")] [INFO] [stdout] 66 | Shimmer, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_response_format` are never used [INFO] [stdout] --> src/tts.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 69 | pub fn new(model: String, input: String, voice: Voice) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_voice_from_text` is never used [INFO] [stdout] --> src/tts.rs:82:14 [INFO] [stdout] | [INFO] [stdout] 82 | pub async fn get_voice_from_text(req: Request, api_key: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/error.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | Error(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 33 | Error(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `RequestError` is never constructed [INFO] [stdout] --> src/error.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum ApiError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 33 | Error(String), [INFO] [stdout] 34 | RequestError(reqwest::Error), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/chat.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const ENDPOINT: &str = "https://api.openai.com/v1/chat/completions"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `object`, `created`, `model`, `choices`, and `usage` are never read [INFO] [stdout] --> src/chat.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct ChatCompletionResponse { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 60 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 61 | pub object: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 62 | pub created: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 63 | pub model: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 64 | // pub system_fingerprint: String, [INFO] [stdout] 65 | pub choices: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 66 | pub usage: Usage, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChatCompletionResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_text` is never used [INFO] [stdout] --> src/chat.rs:88:14 [INFO] [stdout] | [INFO] [stdout] 88 | pub async fn send_text<'a>( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stt::get_text_from_voice` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use stt::get_text_from_voice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt`, `fs::File` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 12 | io::{AsyncReadExt, AsyncWriteExt}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Request`, `Voice`, `get_voice_from_text` [INFO] [stdout] --> src/main.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | use tts::{get_voice_from_text, Request, Voice}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stt::get_text_from_voice` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use stt::get_text_from_voice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt`, `fs::File` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 12 | io::{AsyncReadExt, AsyncWriteExt}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Request`, `Voice`, `get_voice_from_text` [INFO] [stdout] --> src/main.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | use tts::{get_voice_from_text, Request, Voice}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `object`, `created`, `model`, and `usage` are never read [INFO] [stdout] --> src/chat.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct ChatCompletionResponse { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 60 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 61 | pub object: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 62 | pub created: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 63 | pub model: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub usage: Usage, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChatCompletionResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/error.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | Error(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 33 | Error(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/error.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | RequestError(reqwest::Error), [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 34 | RequestError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/stt.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/transcriptions"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `text` is never read [INFO] [stdout] --> src/stt.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct OpenAiResponse { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 58 | pub text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_response_format`, `with_language`, `with_prompt`, and `with_temperature` are never used [INFO] [stdout] --> src/stt.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 79 | pub fn new(content: Vec) -> Request { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn with_language(mut self, language: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn with_prompt(mut self, prompt: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn with_temperature(mut self, temperature: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_text_from_voice` is never used [INFO] [stdout] --> src/stt.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | pub async fn get_text_from_voice(api_key: &str, req: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_response` is never used [INFO] [stdout] --> src/stt.rs:138:10 [INFO] [stdout] | [INFO] [stdout] 138 | async fn get_response(response_fromat: ResponseFormat, response: Response) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/tts.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/speech"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Mp3`, `Opus`, `Aac`, and `Flac` are never constructed [INFO] [stdout] --> src/tts.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum ResponseFormat { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 44 | #[serde(rename = "mp3")] [INFO] [stdout] 45 | Mp3, [INFO] [stdout] | ^^^ [INFO] [stdout] 46 | #[serde(rename = "opus")] [INFO] [stdout] 47 | Opus, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | #[serde(rename = "aac")] [INFO] [stdout] 49 | Aac, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | #[serde(rename = "flac")] [INFO] [stdout] 51 | Flac, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Alloy`, `Echo`, `Fable`, `Onyx`, `Nova`, and `Shimmer` are never constructed [INFO] [stdout] --> src/tts.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum Voice { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 55 | #[serde(rename = "alloy")] [INFO] [stdout] 56 | Alloy, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 57 | #[serde(rename = "echo")] [INFO] [stdout] 58 | Echo, [INFO] [stdout] | ^^^^ [INFO] [stdout] 59 | #[serde(rename = "fable")] [INFO] [stdout] 60 | Fable, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 61 | #[serde(rename = "onyx")] [INFO] [stdout] 62 | Onyx, [INFO] [stdout] | ^^^^ [INFO] [stdout] 63 | #[serde(rename = "nova")] [INFO] [stdout] 64 | Nova, [INFO] [stdout] | ^^^^ [INFO] [stdout] 65 | #[serde(rename = "shimmer")] [INFO] [stdout] 66 | Shimmer, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_response_format` are never used [INFO] [stdout] --> src/tts.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 69 | pub fn new(model: String, input: String, voice: Voice) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_voice_from_text` is never used [INFO] [stdout] --> src/tts.rs:82:14 [INFO] [stdout] | [INFO] [stdout] 82 | pub async fn get_voice_from_text(req: Request, api_key: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `object`, `created`, `model`, and `usage` are never read [INFO] [stdout] --> src/chat.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct ChatCompletionResponse { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 60 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 61 | pub object: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 62 | pub created: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 63 | pub model: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub usage: Usage, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChatCompletionResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/error.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | Error(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 33 | Error(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/error.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | RequestError(reqwest::Error), [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 34 | RequestError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/stt.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/transcriptions"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `text` is never read [INFO] [stdout] --> src/stt.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct OpenAiResponse { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 58 | pub text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_response_format`, `with_language`, `with_prompt`, and `with_temperature` are never used [INFO] [stdout] --> src/stt.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 79 | pub fn new(content: Vec) -> Request { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn with_language(mut self, language: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn with_prompt(mut self, prompt: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn with_temperature(mut self, temperature: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_text_from_voice` is never used [INFO] [stdout] --> src/stt.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | pub async fn get_text_from_voice(api_key: &str, req: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_response` is never used [INFO] [stdout] --> src/stt.rs:138:10 [INFO] [stdout] | [INFO] [stdout] 138 | async fn get_response(response_fromat: ResponseFormat, response: Response) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/tts.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/speech"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Mp3`, `Opus`, `Aac`, and `Flac` are never constructed [INFO] [stdout] --> src/tts.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum ResponseFormat { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 44 | #[serde(rename = "mp3")] [INFO] [stdout] 45 | Mp3, [INFO] [stdout] | ^^^ [INFO] [stdout] 46 | #[serde(rename = "opus")] [INFO] [stdout] 47 | Opus, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | #[serde(rename = "aac")] [INFO] [stdout] 49 | Aac, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | #[serde(rename = "flac")] [INFO] [stdout] 51 | Flac, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Alloy`, `Echo`, `Fable`, `Onyx`, `Nova`, and `Shimmer` are never constructed [INFO] [stdout] --> src/tts.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum Voice { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 55 | #[serde(rename = "alloy")] [INFO] [stdout] 56 | Alloy, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 57 | #[serde(rename = "echo")] [INFO] [stdout] 58 | Echo, [INFO] [stdout] | ^^^^ [INFO] [stdout] 59 | #[serde(rename = "fable")] [INFO] [stdout] 60 | Fable, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 61 | #[serde(rename = "onyx")] [INFO] [stdout] 62 | Onyx, [INFO] [stdout] | ^^^^ [INFO] [stdout] 63 | #[serde(rename = "nova")] [INFO] [stdout] 64 | Nova, [INFO] [stdout] | ^^^^ [INFO] [stdout] 65 | #[serde(rename = "shimmer")] [INFO] [stdout] 66 | Shimmer, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_response_format` are never used [INFO] [stdout] --> src/tts.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 69 | pub fn new(model: String, input: String, voice: Voice) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_voice_from_text` is never used [INFO] [stdout] --> src/tts.rs:82:14 [INFO] [stdout] | [INFO] [stdout] 82 | pub async fn get_voice_from_text(req: Request, api_key: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.44s [INFO] running `Command { std: "docker" "inspect" "3fe0371014d6e0d63921b1e43c6233c0ae4a68ec0c84b5242ba83057653f35f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3fe0371014d6e0d63921b1e43c6233c0ae4a68ec0c84b5242ba83057653f35f8", kill_on_drop: false }` [INFO] [stdout] 3fe0371014d6e0d63921b1e43c6233c0ae4a68ec0c84b5242ba83057653f35f8 [INFO] checking Shahrooze/simple-open-ai against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShahrooze%2Fsimple-open-ai" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Shahrooze/simple-open-ai on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Shahrooze/simple-open-ai [INFO] finished tweaking git repo https://github.com/Shahrooze/simple-open-ai [INFO] tweaked toml for git repo https://github.com/Shahrooze/simple-open-ai written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Shahrooze/simple-open-ai already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1020c61fbd9a2f5fa7dad18d1880ebedad8021955deb63a10cffbd7e5b260df3 [INFO] running `Command { std: "docker" "start" "-a" "1020c61fbd9a2f5fa7dad18d1880ebedad8021955deb63a10cffbd7e5b260df3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1020c61fbd9a2f5fa7dad18d1880ebedad8021955deb63a10cffbd7e5b260df3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1020c61fbd9a2f5fa7dad18d1880ebedad8021955deb63a10cffbd7e5b260df3", kill_on_drop: false }` [INFO] [stdout] 1020c61fbd9a2f5fa7dad18d1880ebedad8021955deb63a10cffbd7e5b260df3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 74bfd18f4d3d3859dda51672633f87fc6904f3f2eb2a9316e3ebbb13bf7bc767 [INFO] running `Command { std: "docker" "start" "-a" "74bfd18f4d3d3859dda51672633f87fc6904f3f2eb2a9316e3ebbb13bf7bc767", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling openssl v0.10.59 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling serde v1.0.192 [INFO] [stderr] Checking futures-sink v0.3.29 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Checking base64 v0.21.5 [INFO] [stderr] Checking strum v0.25.0 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking mio v0.8.9 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling openssl-sys v0.9.95 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.192 [INFO] [stderr] Compiling strum_macros v0.25.3 [INFO] [stderr] Checking tokio v1.33.0 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.21 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_json v1.0.108 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.22 [INFO] [stderr] Checking simple-open-ai v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/stt.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/transcriptions"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `text` is never read [INFO] [stdout] --> src/stt.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct OpenAiResponse { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 58 | pub text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_response_format`, `with_language`, `with_prompt`, and `with_temperature` are never used [INFO] [stdout] --> src/stt.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 79 | pub fn new(content: Vec) -> Request { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn with_language(mut self, language: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn with_prompt(mut self, prompt: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn with_temperature(mut self, temperature: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_text_from_voice` is never used [INFO] [stdout] --> src/stt.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | pub async fn get_text_from_voice(api_key: &str, req: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_response` is never used [INFO] [stdout] --> src/stt.rs:138:10 [INFO] [stdout] | [INFO] [stdout] 138 | async fn get_response(response_fromat: ResponseFormat, response: Response) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/tts.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/speech"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Mp3`, `Opus`, `Aac`, and `Flac` are never constructed [INFO] [stdout] --> src/tts.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum ResponseFormat { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 44 | #[serde(rename = "mp3")] [INFO] [stdout] 45 | Mp3, [INFO] [stdout] | ^^^ [INFO] [stdout] 46 | #[serde(rename = "opus")] [INFO] [stdout] 47 | Opus, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | #[serde(rename = "aac")] [INFO] [stdout] 49 | Aac, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | #[serde(rename = "flac")] [INFO] [stdout] 51 | Flac, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Alloy`, `Echo`, `Fable`, `Onyx`, `Nova`, and `Shimmer` are never constructed [INFO] [stdout] --> src/tts.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum Voice { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 55 | #[serde(rename = "alloy")] [INFO] [stdout] 56 | Alloy, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 57 | #[serde(rename = "echo")] [INFO] [stdout] 58 | Echo, [INFO] [stdout] | ^^^^ [INFO] [stdout] 59 | #[serde(rename = "fable")] [INFO] [stdout] 60 | Fable, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 61 | #[serde(rename = "onyx")] [INFO] [stdout] 62 | Onyx, [INFO] [stdout] | ^^^^ [INFO] [stdout] 63 | #[serde(rename = "nova")] [INFO] [stdout] 64 | Nova, [INFO] [stdout] | ^^^^ [INFO] [stdout] 65 | #[serde(rename = "shimmer")] [INFO] [stdout] 66 | Shimmer, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_response_format` are never used [INFO] [stdout] --> src/tts.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 69 | pub fn new(model: String, input: String, voice: Voice) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_voice_from_text` is never used [INFO] [stdout] --> src/tts.rs:82:14 [INFO] [stdout] | [INFO] [stdout] 82 | pub async fn get_voice_from_text(req: Request, api_key: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/error.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | Error(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 33 | Error(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `RequestError` is never constructed [INFO] [stdout] --> src/error.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum ApiError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 33 | Error(String), [INFO] [stdout] 34 | RequestError(reqwest::Error), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/chat.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const ENDPOINT: &str = "https://api.openai.com/v1/chat/completions"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `object`, `created`, `model`, `choices`, and `usage` are never read [INFO] [stdout] --> src/chat.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct ChatCompletionResponse { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 60 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 61 | pub object: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 62 | pub created: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 63 | pub model: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 64 | // pub system_fingerprint: String, [INFO] [stdout] 65 | pub choices: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 66 | pub usage: Usage, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChatCompletionResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_text` is never used [INFO] [stdout] --> src/chat.rs:88:14 [INFO] [stdout] | [INFO] [stdout] 88 | pub async fn send_text<'a>( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/stt.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/transcriptions"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `text` is never read [INFO] [stdout] --> src/stt.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct OpenAiResponse { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 58 | pub text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_response_format`, `with_language`, `with_prompt`, and `with_temperature` are never used [INFO] [stdout] --> src/stt.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 79 | pub fn new(content: Vec) -> Request { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn with_language(mut self, language: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn with_prompt(mut self, prompt: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn with_temperature(mut self, temperature: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_text_from_voice` is never used [INFO] [stdout] --> src/stt.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | pub async fn get_text_from_voice(api_key: &str, req: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_response` is never used [INFO] [stdout] --> src/stt.rs:138:10 [INFO] [stdout] | [INFO] [stdout] 138 | async fn get_response(response_fromat: ResponseFormat, response: Response) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/tts.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/speech"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Mp3`, `Opus`, `Aac`, and `Flac` are never constructed [INFO] [stdout] --> src/tts.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum ResponseFormat { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 44 | #[serde(rename = "mp3")] [INFO] [stdout] 45 | Mp3, [INFO] [stdout] | ^^^ [INFO] [stdout] 46 | #[serde(rename = "opus")] [INFO] [stdout] 47 | Opus, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | #[serde(rename = "aac")] [INFO] [stdout] 49 | Aac, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | #[serde(rename = "flac")] [INFO] [stdout] 51 | Flac, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Alloy`, `Echo`, `Fable`, `Onyx`, `Nova`, and `Shimmer` are never constructed [INFO] [stdout] --> src/tts.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum Voice { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 55 | #[serde(rename = "alloy")] [INFO] [stdout] 56 | Alloy, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 57 | #[serde(rename = "echo")] [INFO] [stdout] 58 | Echo, [INFO] [stdout] | ^^^^ [INFO] [stdout] 59 | #[serde(rename = "fable")] [INFO] [stdout] 60 | Fable, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 61 | #[serde(rename = "onyx")] [INFO] [stdout] 62 | Onyx, [INFO] [stdout] | ^^^^ [INFO] [stdout] 63 | #[serde(rename = "nova")] [INFO] [stdout] 64 | Nova, [INFO] [stdout] | ^^^^ [INFO] [stdout] 65 | #[serde(rename = "shimmer")] [INFO] [stdout] 66 | Shimmer, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_response_format` are never used [INFO] [stdout] --> src/tts.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 69 | pub fn new(model: String, input: String, voice: Voice) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_voice_from_text` is never used [INFO] [stdout] --> src/tts.rs:82:14 [INFO] [stdout] | [INFO] [stdout] 82 | pub async fn get_voice_from_text(req: Request, api_key: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/error.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | Error(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 33 | Error(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `RequestError` is never constructed [INFO] [stdout] --> src/error.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum ApiError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 33 | Error(String), [INFO] [stdout] 34 | RequestError(reqwest::Error), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/chat.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const ENDPOINT: &str = "https://api.openai.com/v1/chat/completions"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `object`, `created`, `model`, `choices`, and `usage` are never read [INFO] [stdout] --> src/chat.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct ChatCompletionResponse { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 60 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 61 | pub object: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 62 | pub created: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 63 | pub model: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 64 | // pub system_fingerprint: String, [INFO] [stdout] 65 | pub choices: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 66 | pub usage: Usage, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChatCompletionResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_text` is never used [INFO] [stdout] --> src/chat.rs:88:14 [INFO] [stdout] | [INFO] [stdout] 88 | pub async fn send_text<'a>( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stt::get_text_from_voice` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use stt::get_text_from_voice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt`, `fs::File` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 12 | io::{AsyncReadExt, AsyncWriteExt}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Request`, `Voice`, `get_voice_from_text` [INFO] [stdout] --> src/main.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | use tts::{get_voice_from_text, Request, Voice}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stt::get_text_from_voice` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use stt::get_text_from_voice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt`, `AsyncWriteExt`, `fs::File` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 12 | io::{AsyncReadExt, AsyncWriteExt}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Request`, `Voice`, `get_voice_from_text` [INFO] [stdout] --> src/main.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | use tts::{get_voice_from_text, Request, Voice}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `object`, `created`, `model`, and `usage` are never read [INFO] [stdout] --> src/chat.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct ChatCompletionResponse { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 60 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 61 | pub object: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 62 | pub created: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 63 | pub model: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub usage: Usage, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChatCompletionResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/error.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | Error(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 33 | Error(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/error.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | RequestError(reqwest::Error), [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 34 | RequestError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/stt.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/transcriptions"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `text` is never read [INFO] [stdout] --> src/stt.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct OpenAiResponse { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 58 | pub text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_response_format`, `with_language`, `with_prompt`, and `with_temperature` are never used [INFO] [stdout] --> src/stt.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 79 | pub fn new(content: Vec) -> Request { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn with_language(mut self, language: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn with_prompt(mut self, prompt: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn with_temperature(mut self, temperature: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_text_from_voice` is never used [INFO] [stdout] --> src/stt.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | pub async fn get_text_from_voice(api_key: &str, req: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_response` is never used [INFO] [stdout] --> src/stt.rs:138:10 [INFO] [stdout] | [INFO] [stdout] 138 | async fn get_response(response_fromat: ResponseFormat, response: Response) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/tts.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/speech"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Mp3`, `Opus`, `Aac`, and `Flac` are never constructed [INFO] [stdout] --> src/tts.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum ResponseFormat { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 44 | #[serde(rename = "mp3")] [INFO] [stdout] 45 | Mp3, [INFO] [stdout] | ^^^ [INFO] [stdout] 46 | #[serde(rename = "opus")] [INFO] [stdout] 47 | Opus, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | #[serde(rename = "aac")] [INFO] [stdout] 49 | Aac, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | #[serde(rename = "flac")] [INFO] [stdout] 51 | Flac, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Alloy`, `Echo`, `Fable`, `Onyx`, `Nova`, and `Shimmer` are never constructed [INFO] [stdout] --> src/tts.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum Voice { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 55 | #[serde(rename = "alloy")] [INFO] [stdout] 56 | Alloy, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 57 | #[serde(rename = "echo")] [INFO] [stdout] 58 | Echo, [INFO] [stdout] | ^^^^ [INFO] [stdout] 59 | #[serde(rename = "fable")] [INFO] [stdout] 60 | Fable, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 61 | #[serde(rename = "onyx")] [INFO] [stdout] 62 | Onyx, [INFO] [stdout] | ^^^^ [INFO] [stdout] 63 | #[serde(rename = "nova")] [INFO] [stdout] 64 | Nova, [INFO] [stdout] | ^^^^ [INFO] [stdout] 65 | #[serde(rename = "shimmer")] [INFO] [stdout] 66 | Shimmer, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_response_format` are never used [INFO] [stdout] --> src/tts.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 69 | pub fn new(model: String, input: String, voice: Voice) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_voice_from_text` is never used [INFO] [stdout] --> src/tts.rs:82:14 [INFO] [stdout] | [INFO] [stdout] 82 | pub async fn get_voice_from_text(req: Request, api_key: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `object`, `created`, `model`, and `usage` are never read [INFO] [stdout] --> src/chat.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct ChatCompletionResponse { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 60 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 61 | pub object: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 62 | pub created: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 63 | pub model: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub usage: Usage, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChatCompletionResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/error.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | Error(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 33 | Error(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/error.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | RequestError(reqwest::Error), [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 34 | RequestError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/stt.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/transcriptions"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `text` is never read [INFO] [stdout] --> src/stt.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct OpenAiResponse { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 58 | pub text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_response_format`, `with_language`, `with_prompt`, and `with_temperature` are never used [INFO] [stdout] --> src/stt.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 79 | pub fn new(content: Vec) -> Request { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn with_language(mut self, language: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn with_prompt(mut self, prompt: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn with_temperature(mut self, temperature: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_text_from_voice` is never used [INFO] [stdout] --> src/stt.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | pub async fn get_text_from_voice(api_key: &str, req: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_response` is never used [INFO] [stdout] --> src/stt.rs:138:10 [INFO] [stdout] | [INFO] [stdout] 138 | async fn get_response(response_fromat: ResponseFormat, response: Response) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENDPOINT` is never used [INFO] [stdout] --> src/tts.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | const ENDPOINT: &str = "https://api.openai.com/v1/audio/speech"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Mp3`, `Opus`, `Aac`, and `Flac` are never constructed [INFO] [stdout] --> src/tts.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum ResponseFormat { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 44 | #[serde(rename = "mp3")] [INFO] [stdout] 45 | Mp3, [INFO] [stdout] | ^^^ [INFO] [stdout] 46 | #[serde(rename = "opus")] [INFO] [stdout] 47 | Opus, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | #[serde(rename = "aac")] [INFO] [stdout] 49 | Aac, [INFO] [stdout] | ^^^ [INFO] [stdout] 50 | #[serde(rename = "flac")] [INFO] [stdout] 51 | Flac, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Alloy`, `Echo`, `Fable`, `Onyx`, `Nova`, and `Shimmer` are never constructed [INFO] [stdout] --> src/tts.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum Voice { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 55 | #[serde(rename = "alloy")] [INFO] [stdout] 56 | Alloy, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 57 | #[serde(rename = "echo")] [INFO] [stdout] 58 | Echo, [INFO] [stdout] | ^^^^ [INFO] [stdout] 59 | #[serde(rename = "fable")] [INFO] [stdout] 60 | Fable, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 61 | #[serde(rename = "onyx")] [INFO] [stdout] 62 | Onyx, [INFO] [stdout] | ^^^^ [INFO] [stdout] 63 | #[serde(rename = "nova")] [INFO] [stdout] 64 | Nova, [INFO] [stdout] | ^^^^ [INFO] [stdout] 65 | #[serde(rename = "shimmer")] [INFO] [stdout] 66 | Shimmer, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_response_format` are never used [INFO] [stdout] --> src/tts.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 69 | pub fn new(model: String, input: String, voice: Voice) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn with_response_format(mut self, response_format: ResponseFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_voice_from_text` is never used [INFO] [stdout] --> src/tts.rs:82:14 [INFO] [stdout] | [INFO] [stdout] 82 | pub async fn get_voice_from_text(req: Request, api_key: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.39s [INFO] running `Command { std: "docker" "inspect" "74bfd18f4d3d3859dda51672633f87fc6904f3f2eb2a9316e3ebbb13bf7bc767", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74bfd18f4d3d3859dda51672633f87fc6904f3f2eb2a9316e3ebbb13bf7bc767", kill_on_drop: false }` [INFO] [stdout] 74bfd18f4d3d3859dda51672633f87fc6904f3f2eb2a9316e3ebbb13bf7bc767