[INFO] fetching crate prigen-cli 1.2.0... [INFO] checking prigen-cli-1.2.0 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate prigen-cli 1.2.0 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate prigen-cli 1.2.0 [INFO] finished tweaking crates.io crate prigen-cli 1.2.0 [INFO] tweaked toml for crates.io crate prigen-cli 1.2.0 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate prigen-cli 1.2.0 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate prigen-cli 1.2.0 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded terminal-supports-emoji v0.1.3 [INFO] [stderr] Downloaded newline-converter v0.3.0 [INFO] [stderr] Downloaded terminal-emoji v0.4.1 [INFO] [stderr] Downloaded tinyvec v1.7.0 [INFO] [stderr] Downloaded clap v4.5.8 [INFO] [stderr] Downloaded quinn v0.11.3 [INFO] [stderr] Downloaded cc v1.0.104 [INFO] [stderr] Downloaded inquire v0.7.5 [INFO] [stderr] Downloaded hyper v1.4.0 [INFO] [stderr] Downloaded rustls-webpki v0.102.6 [INFO] [stderr] Downloaded clap_builder v4.5.8 [INFO] [stderr] Downloaded quinn-proto v0.11.6 [INFO] [stderr] Downloaded rustls v0.23.12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c3906779e55d83359a07f7e3c588ae9fc127c6dc3f1fde02c9c83a366dd2b19a [INFO] running `Command { std: "docker" "start" "-a" "c3906779e55d83359a07f7e3c588ae9fc127c6dc3f1fde02c9c83a366dd2b19a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c3906779e55d83359a07f7e3c588ae9fc127c6dc3f1fde02c9c83a366dd2b19a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3906779e55d83359a07f7e3c588ae9fc127c6dc3f1fde02c9c83a366dd2b19a", kill_on_drop: false }` [INFO] [stdout] c3906779e55d83359a07f7e3c588ae9fc127c6dc3f1fde02c9c83a366dd2b19a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 93487a70ca861c403e24dc8b4b18927266eef4ceb14cea3a94b6e8521770496e [INFO] running `Command { std: "docker" "start" "-a" "93487a70ca861c403e24dc8b4b18927266eef4ceb14cea3a94b6e8521770496e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling cc v1.0.104 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking tinyvec v1.7.0 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling serde_json v1.0.125 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Compiling portable-atomic v1.6.0 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Checking anstyle-query v1.1.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking unicode-width v0.1.13 [INFO] [stderr] Checking rustls-pki-types v1.8.0 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking clap_lex v0.7.1 [INFO] [stderr] Compiling syn v2.0.68 [INFO] [stderr] Checking rustls-pemfile v2.1.3 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking unicode-segmentation v1.11.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking fuzzy-matcher v0.3.7 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking terminal-supports-emoji v0.1.3 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking newline-converter v0.3.0 [INFO] [stderr] Checking console v0.15.8 [INFO] [stderr] Checking clap_builder v4.5.8 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking dyn-clone v1.0.17 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking signal-hook-mio v0.2.3 [INFO] [stderr] Checking terminal-emoji v0.4.1 [INFO] [stderr] Checking dotenvy v0.15.7 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Checking crossterm v0.25.0 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking indicatif v0.17.8 [INFO] [stderr] Checking inquire v0.7.5 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking eventsource-stream v0.2.3 [INFO] [stderr] Checking clap v4.5.8 [INFO] [stderr] Checking regex v1.10.5 [INFO] [stderr] Compiling darling_core v0.14.4 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Checking tokio v1.38.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Compiling darling_macro v0.14.4 [INFO] [stderr] Compiling darling v0.14.4 [INFO] [stderr] Compiling derive_builder_core v0.12.0 [INFO] [stderr] Compiling derive_builder_macro v0.12.0 [INFO] [stderr] Checking derive_builder v0.12.0 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking hyper v1.4.0 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking hyper-util v0.1.6 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.7 [INFO] [stderr] Checking reqwest-eventsource v0.6.0 [INFO] [stderr] Checking prigen-cli v1.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/validator/mod.rs:49:55 [INFO] [stdout] | [INFO] [stdout] 49 | async fn validate_cli_version_from_server() -> Result<(ApiResponse), Box> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 49 - async fn validate_cli_version_from_server() -> Result<(ApiResponse), Box> { [INFO] [stdout] 49 + async fn validate_cli_version_from_server() -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/generators/java_spring_boot/mod.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | if (has_graphql) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 114 - if (has_graphql) { [INFO] [stdout] 114 + if has_graphql { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arg`, `Command`, `crate_description`, and `crate_version` [INFO] [stdout] --> src/main.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use clap::{Command, crate_description, crate_version, Arg}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ai::process_ai` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::ai::process_ai; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_type_prompt` [INFO] [stdout] --> src/main.rs:18:215 [INFO] [stdout] | [INFO] [stdout] 18 | ...e, get_frontend_category_prompt, get_library_types_prompt, get_type_prompt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/main.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::utils::{Type, BackendCategory, BackendApiCoreLanguages, BackendBffLanguages, BackendLibraryTypes, FrontendCategory, BackendBat... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::validator::validate_cli_version_with_runtime` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::validator::validate_cli_version_with_runtime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::openai::set_key` [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::openai::set_key; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::tests` [INFO] [stdout] --> src/openai/completions.rs:170:16 [INFO] [stdout] | [INFO] [stdout] 170 | use crate::tests::DEFAULT_LEGACY_MODEL; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `openai::tests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::tests` [INFO] [stdout] --> src/openai/models.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | use crate::tests::DEFAULT_LEGACY_MODEL; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `openai::tests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/validator/mod.rs:49:55 [INFO] [stdout] | [INFO] [stdout] 49 | async fn validate_cli_version_from_server() -> Result<(ApiResponse), Box> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 49 - async fn validate_cli_version_from_server() -> Result<(ApiResponse), Box> { [INFO] [stdout] 49 + async fn validate_cli_version_from_server() -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/generators/java_spring_boot/mod.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | if (has_graphql) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 114 - if (has_graphql) { [INFO] [stdout] 114 + if has_graphql { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arg`, `Command`, `crate_description`, and `crate_version` [INFO] [stdout] --> src/main.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use clap::{Command, crate_description, crate_version, Arg}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ai::process_ai` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::ai::process_ai; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_type_prompt` [INFO] [stdout] --> src/main.rs:18:215 [INFO] [stdout] | [INFO] [stdout] 18 | ...e, get_frontend_category_prompt, get_library_types_prompt, get_type_prompt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/main.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::utils::{Type, BackendCategory, BackendApiCoreLanguages, BackendBffLanguages, BackendLibraryTypes, FrontendCategory, BackendBat... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::validator::validate_cli_version_with_runtime` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::validator::validate_cli_version_with_runtime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `response_body` is never read [INFO] [stdout] --> src/validator/mod.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut response_body: ApiResponse = ApiResponse { valid: false, open_aitoken_is_required: Some(true) }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `response_body` is never read [INFO] [stdout] --> src/validator/mod.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut response_body: ApiResponse = ApiResponse { valid: false, open_aitoken_is_required: Some(true) }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProjectConfig` is never constructed [INFO] [stdout] --> src/main.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct ProjectConfig { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_backend` is never used [INFO] [stdout] --> src/main.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn process_backend() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_backend_api_core` is never used [INFO] [stdout] --> src/main.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn process_backend_api_core() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_backend_bff` is never used [INFO] [stdout] --> src/main.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn process_backend_bff() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_backend_batch` is never used [INFO] [stdout] --> src/main.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn process_backend_batch() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_backend_library` is never used [INFO] [stdout] --> src/main.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn process_backend_library() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_frontend` is never used [INFO] [stdout] --> src/main.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn process_frontend() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ApiResponse` is never constructed [INFO] [stdout] --> src/validator/mod.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct ApiResponse { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_cli_version_with_runtime` is never used [INFO] [stdout] --> src/validator/mod.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn validate_cli_version_with_runtime() -> ApiResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_cli_version_from_server` is never used [INFO] [stdout] --> src/validator/mod.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | async fn validate_cli_version_from_server() -> Result<(ApiResponse), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_PRIGEN_HOST_URL` is never used [INFO] [stdout] --> src/utils/mod.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const DEFAULT_PRIGEN_HOST_URL: &str = "http://prigen-api.prismamp.com"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GENERATOR_PATH` is never used [INFO] [stdout] --> src/utils/mod.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub const GENERATOR_PATH: &str = "/v1/prigen/generate"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERSION_PATH` is never used [INFO] [stdout] --> src/utils/mod.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub const VERSION_PATH: &str = "/v1/prigen/version"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ErrorWrapper` is never used [INFO] [stdout] --> src/utils/mod.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum ErrorWrapper { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Type` is never used [INFO] [stdout] --> src/utils/mod.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum Type { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BackendCategory` is never used [INFO] [stdout] --> src/utils/mod.rs:60:10 [INFO] [stdout] | [INFO] [stdout] 60 | pub enum BackendCategory { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BackendApiCoreLanguages` is never used [INFO] [stdout] --> src/utils/mod.rs:80:10 [INFO] [stdout] | [INFO] [stdout] 80 | pub enum BackendApiCoreLanguages { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BackendBffLanguages` is never used [INFO] [stdout] --> src/utils/mod.rs:98:10 [INFO] [stdout] | [INFO] [stdout] 98 | pub enum BackendBffLanguages { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BackendBatchTypes` is never used [INFO] [stdout] --> src/utils/mod.rs:114:10 [INFO] [stdout] | [INFO] [stdout] 114 | pub enum BackendBatchTypes { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BackendLibraryTypes` is never used [INFO] [stdout] --> src/utils/mod.rs:128:10 [INFO] [stdout] | [INFO] [stdout] 128 | pub enum BackendLibraryTypes { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FrontendCategory` is never used [INFO] [stdout] --> src/utils/mod.rs:144:10 [INFO] [stdout] | [INFO] [stdout] 144 | pub enum FrontendCategory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `call_request_generator` is never used [INFO] [stdout] --> src/utils/mod.rs:170:14 [INFO] [stdout] | [INFO] [stdout] 170 | pub async fn call_request_generator(params: HashMap<&str, &str>, project_id: &str) -> Result<(), ErrorWrapper> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_to_file` is never used [INFO] [stdout] --> src/utils/mod.rs:229:14 [INFO] [stdout] | [INFO] [stdout] 229 | pub async fn write_to_file(bytes: bytes::Bytes, name: Option<&&str>) -> Result<(), ErrorWrapper> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_progress_bar` is never used [INFO] [stdout] --> src/utils/mod.rs:240:4 [INFO] [stdout] | [INFO] [stdout] 240 | fn get_progress_bar() -> ProgressBar { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `execute_and_handle` is never used [INFO] [stdout] --> src/utils/mod.rs:252:8 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn execute_and_handle(f: F) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate` is never used [INFO] [stdout] --> src/generators/mod.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn generate(project_config: ProjectConfig) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gather_java_sp_project_details` is never used [INFO] [stdout] --> src/generators/java_spring_boot/mod.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn gather_java_sp_project_details(is_kotlin: bool, is_bff: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_request_java_sp` is never used [INFO] [stdout] --> src/generators/java_spring_boot/mod.rs:96:14 [INFO] [stdout] | [INFO] [stdout] 96 | pub async fn send_request_java_sp(name: &str, desc: &str, ver: &str, cont: &str, p: &str, chart: &str, modules: Vec<&str>, is_kotlin: boo... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gather_java_library_project_details` is never used [INFO] [stdout] --> src/generators/java_library/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn gather_java_library_project_details(is_spring_boot: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_request_java_library` is never used [INFO] [stdout] --> src/generators/java_library/mod.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | pub async fn send_request_java_library(name: &str, desc: &str, is_spring_boot: bool) -> Result<(), ErrorWrapper> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gather_node_nestjs_project_details` is never used [INFO] [stdout] --> src/generators/node_nestjs/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn gather_node_nestjs_project_details(is_bff: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_request_node_nestjs` is never used [INFO] [stdout] --> src/generators/node_nestjs/mod.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | pub async fn send_request_node_nestjs(name: &str, desc: &str, version: &str, context: &str, healm_chart: &str, is_bff: bool) -> Result<()... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gather_frontend_nextjs_project_details` is never used [INFO] [stdout] --> src/generators/node_nextjs/mod.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) fn gather_frontend_nextjs_project_details(is_bo: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_request_frontend_nextjs` is never used [INFO] [stdout] --> src/generators/node_nextjs/mod.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | pub async fn send_request_frontend_nextjs(name: &str, desc: &str, version: &str, context: &str, is_bo: bool) -> Result<(), ErrorWrapper> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gather_java_batch_project_details` is never used [INFO] [stdout] --> src/generators/batch/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn gather_java_batch_project_details() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_request_java_batch` is never used [INFO] [stdout] --> src/generators/batch/mod.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | pub async fn send_request_java_batch(name: &str, desc: &str, port: &str) -> Result<(), ErrorWrapper> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gather_frontend_payway_project_details` is never used [INFO] [stdout] --> src/generators/frontend/mod.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) fn gather_frontend_payway_project_details() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_request_frontend_payway` is never used [INFO] [stdout] --> src/generators/frontend/mod.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | pub async fn send_request_frontend_payway(name: &str, desc: &str) -> Result<(), ErrorWrapper> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_type_prompt` is never used [INFO] [stdout] --> src/prompts/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn get_type_prompt() -> InquireResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_category_prompt` is never used [INFO] [stdout] --> src/prompts/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn get_category_prompt() -> InquireResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_backend_api_core_languages_prompt` is never used [INFO] [stdout] --> src/prompts/mod.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn get_backend_api_core_languages_prompt() -> InquireResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_backend_bff_languages_prompt` is never used [INFO] [stdout] --> src/prompts/mod.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn get_backend_bff_languages_prompt() -> InquireResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_batch_types_prompt` is never used [INFO] [stdout] --> src/prompts/mod.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn get_batch_types_prompt() -> InquireResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_library_types_prompt` is never used [INFO] [stdout] --> src/prompts/mod.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn get_library_types_prompt() -> InquireResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_frontend_category_prompt` is never used [INFO] [stdout] --> src/prompts/mod.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn get_frontend_category_prompt() -> InquireResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_project_name_prompt` is never used [INFO] [stdout] --> src/prompts/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_project_name_prompt() -> InquireResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_version_prompt` is never used [INFO] [stdout] --> src/prompts/mod.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn get_version_prompt() -> InquireResult{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_context_prompt` is never used [INFO] [stdout] --> src/prompts/mod.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn get_context_prompt(project: &String) -> InquireResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_port_prompt` is never used [INFO] [stdout] --> src/prompts/mod.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn get_port_prompt() -> InquireResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_chart_helm_prompt` is never used [INFO] [stdout] --> src/prompts/mod.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn get_chart_helm_prompt() -> InquireResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_description_prompt` is never used [INFO] [stdout] --> src/prompts/mod.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn get_description_prompt() -> InquireResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_project_ok_message` is never used [INFO] [stdout] --> src/prompts/mod.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn get_project_ok_message() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_connection_error_message` is never used [INFO] [stdout] --> src/prompts/mod.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn get_connection_error_message() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_not_found_error_message` is never used [INFO] [stdout] --> src/prompts/mod.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn get_not_found_error_message() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_update_cli_message` is never used [INFO] [stdout] --> src/prompts/mod.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | pub fn get_update_cli_message() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_check_version_cli_error_message` is never used [INFO] [stdout] --> src/prompts/mod.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | pub fn get_check_version_cli_error_message() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_error_message` is never used [INFO] [stdout] --> src/prompts/mod.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn get_error_message() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_ai_describe_project_prompt` is never used [INFO] [stdout] --> src/prompts/mod.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn get_ai_describe_project_prompt() -> InquireResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_openai_response_error_message` is never used [INFO] [stdout] --> src/prompts/mod.rs:197:8 [INFO] [stdout] | [INFO] [stdout] 197 | pub fn get_openai_response_error_message() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_openai_response_token_error_message` is never used [INFO] [stdout] --> src/prompts/mod.rs:201:8 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn get_openai_response_token_error_message() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_ai_project_description_message` is never used [INFO] [stdout] --> src/prompts/mod.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn get_ai_project_description_message() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_ai_confirm_project_prompt` is never used [INFO] [stdout] --> src/prompts/mod.rs:209:8 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn get_ai_confirm_project_prompt() -> InquireResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_ai_describe_again_project_prompt` is never used [INFO] [stdout] --> src/prompts/mod.rs:215:8 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn get_ai_describe_again_project_prompt() -> InquireResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `display_project_details` is never used [INFO] [stdout] --> src/prompts/mod.rs:220:8 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn display_project_details(assistant_response: &ProjectConfig) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OpenAIConfiguration` is never constructed [INFO] [stdout] --> src/config.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct OpenAIConfiguration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_env` is never used [INFO] [stdout] --> src/config.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl OpenAIConfiguration { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 10 | pub fn from_env() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Usage` is never constructed [INFO] [stdout] --> src/openai/mod.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Usage { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `openai_request_stream` is never used [INFO] [stdout] --> src/openai/mod.rs:103:10 [INFO] [stdout] | [INFO] [stdout] 103 | async fn openai_request_stream( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `openai_post` is never used [INFO] [stdout] --> src/openai/mod.rs:137:10 [INFO] [stdout] | [INFO] [stdout] 137 | async fn openai_post(route: &str, json: &J) -> ApiResponseOrError [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_key` is never used [INFO] [stdout] --> src/openai/mod.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn set_key(value: String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_base_url` is never used [INFO] [stdout] --> src/openai/mod.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn set_base_url(value: String) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ChatCompletion` is never used [INFO] [stdout] --> src/openai/chat.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub type ChatCompletion = ChatCompletionGeneric; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ChatCompletionDelta` is never used [INFO] [stdout] --> src/openai/chat.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub type ChatCompletionDelta = ChatCompletionGeneric; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatCompletionGeneric` is never constructed [INFO] [stdout] --> src/openai/chat.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ChatCompletionGeneric { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatCompletionChoice` is never constructed [INFO] [stdout] --> src/openai/chat.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct ChatCompletionChoice { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatCompletionChoiceDelta` is never constructed [INFO] [stdout] --> src/openai/chat.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct ChatCompletionChoiceDelta { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatCompletionMessageDelta` is never constructed [INFO] [stdout] --> src/openai/chat.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct ChatCompletionMessageDelta { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `json_object` and `text` are never used [INFO] [stdout] --> src/openai/chat.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 220 | impl ChatCompletionResponseFormat { [INFO] [stdout] | --------------------------------- associated functions in this implementation [INFO] [stdout] 221 | pub fn json_object() -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn text() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `builder` is never used [INFO] [stdout] --> src/openai/chat.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 234 | impl ChatCompletionGeneric { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 235 | pub fn builder( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create` is never used [INFO] [stdout] --> src/openai/chat.rs:247:18 [INFO] [stdout] | [INFO] [stdout] 246 | impl ChatCompletion { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 247 | pub async fn create(request: &ChatCompletionRequest) -> ApiResponseOrError { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create` and `merge` are never used [INFO] [stdout] --> src/openai/chat.rs:253:18 [INFO] [stdout] | [INFO] [stdout] 252 | impl ChatCompletionDelta { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 253 | pub async fn create( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn merge( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `merge` is never used [INFO] [stdout] --> src/openai/chat.rs:284:12 [INFO] [stdout] | [INFO] [stdout] 283 | impl ChatCompletionChoiceDelta { [INFO] [stdout] | ------------------------------ method in this implementation [INFO] [stdout] 284 | pub fn merge( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ChatCompletionDeltaMergeError` is never used [INFO] [stdout] --> src/openai/chat.rs:399:10 [INFO] [stdout] | [INFO] [stdout] 399 | pub enum ChatCompletionDeltaMergeError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `forward_deserialized_chat_response_stream` is never used [INFO] [stdout] --> src/openai/chat.rs:405:10 [INFO] [stdout] | [INFO] [stdout] 405 | async fn forward_deserialized_chat_response_stream( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `create` and `create_stream` are never used [INFO] [stdout] --> src/openai/chat.rs:423:18 [INFO] [stdout] | [INFO] [stdout] 422 | impl ChatCompletionBuilder { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] 423 | pub async fn create(self) -> ApiResponseOrError { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 427 | pub async fn create_stream( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clone_default_unwrapped_option_string` is never used [INFO] [stdout] --> src/openai/chat.rs:435:4 [INFO] [stdout] | [INFO] [stdout] 435 | fn clone_default_unwrapped_option_string(string: &Option) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Completion` is never constructed [INFO] [stdout] --> src/openai/completions.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Completion { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CompletionChoice` is never constructed [INFO] [stdout] --> src/openai/completions.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct CompletionChoice { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `create` and `builder` are never used [INFO] [stdout] --> src/openai/completions.rs:151:14 [INFO] [stdout] | [INFO] [stdout] 149 | impl Completion { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 150 | /// Creates a completion for the provided prompt and parameters [INFO] [stdout] 151 | async fn create(request: &CompletionRequest) -> ApiResponseOrError { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn builder(model: &str) -> CompletionBuilder { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create` is never used [INFO] [stdout] --> src/openai/completions.rs:161:18 [INFO] [stdout] | [INFO] [stdout] 160 | impl CompletionBuilder { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 161 | pub async fn create(self) -> ApiResponseOrError { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Edit` is never constructed [INFO] [stdout] --> src/openai/edits.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Edit { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EditChoice` is never constructed [INFO] [stdout] --> src/openai/edits.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct EditChoice { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `create` and `builder` are never used [INFO] [stdout] --> src/openai/edits.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 58 | impl Edit { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 59 | async fn create(request: &EditRequest) -> ApiResponseOrError { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn builder(model: &str, instruction: impl Into) -> EditBuilder { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create` is never used [INFO] [stdout] --> src/openai/edits.rs:82:18 [INFO] [stdout] | [INFO] [stdout] 81 | impl EditBuilder { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 82 | pub async fn create(self) -> ApiResponseOrError { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateEmbeddingsRequestBody` is never constructed [INFO] [stdout] --> src/openai/embeddings.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct CreateEmbeddingsRequestBody<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Embeddings` is never constructed [INFO] [stdout] --> src/openai/embeddings.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Embeddings { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EmbeddingsUsage` is never constructed [INFO] [stdout] --> src/openai/embeddings.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct EmbeddingsUsage { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Embedding` is never constructed [INFO] [stdout] --> src/openai/embeddings.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Embedding { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create` and `distances` are never used [INFO] [stdout] --> src/openai/embeddings.rs:49:18 [INFO] [stdout] | [INFO] [stdout] 35 | impl Embeddings { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub async fn create(model: &str, input: Vec<&str>, user: &str) -> ApiResponseOrError { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn distances(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create`, `magnitude`, and `distance` are never used [INFO] [stdout] --> src/openai/embeddings.rs:74:18 [INFO] [stdout] | [INFO] [stdout] 73 | impl Embedding { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 74 | pub async fn create(model: &str, input: &str, user: &str) -> ApiResponseOrError { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn magnitude(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn distance(&self, other: &Self) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Model` is never constructed [INFO] [stdout] --> src/openai/models.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Model { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModelPermission` is never constructed [INFO] [stdout] --> src/openai/models.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ModelPermission { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/openai/models.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 31 | impl Model { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub async fn from(id: &str) -> ApiResponseOrError { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Moderation` is never constructed [INFO] [stdout] --> src/openai/moderations.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Moderation { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModerationResult` is never constructed [INFO] [stdout] --> src/openai/moderations.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ModerationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Categories` is never constructed [INFO] [stdout] --> src/openai/moderations.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Categories { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CategoryScores` is never constructed [INFO] [stdout] --> src/openai/moderations.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct CategoryScores { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `create` and `builder` are never used [INFO] [stdout] --> src/openai/moderations.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 65 | impl Moderation { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 66 | async fn create(request: &ModerationRequest) -> ApiResponseOrError { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn builder(input: impl Into) -> ModerationBuilder { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create` is never used [INFO] [stdout] --> src/openai/moderations.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 75 | impl ModerationBuilder { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 76 | pub async fn create(self) -> ApiResponseOrError { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_ai` is never used [INFO] [stdout] --> src/ai.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn process_ai(api_response: ApiResponse) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `prigen-cli` (bin "prigen-cli" test) due to 2 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "93487a70ca861c403e24dc8b4b18927266eef4ceb14cea3a94b6e8521770496e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93487a70ca861c403e24dc8b4b18927266eef4ceb14cea3a94b6e8521770496e", kill_on_drop: false }` [INFO] [stdout] 93487a70ca861c403e24dc8b4b18927266eef4ceb14cea3a94b6e8521770496e