[INFO] cloning repository https://github.com/ping-ping2580/rust-web [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ping-ping2580/rust-web" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fping-ping2580%2Frust-web", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fping-ping2580%2Frust-web'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0904c20c14efffe95d54de4460fb71fc9b204ef9 [INFO] checking ping-ping2580/rust-web/0904c20c14efffe95d54de4460fb71fc9b204ef9 against master#35d55b34bffd51384ac430cc20852b7d16dd5a90 for pr-145108 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fping-ping2580%2Frust-web" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ping-ping2580/rust-web [INFO] finished tweaking git repo https://github.com/ping-ping2580/rust-web [INFO] tweaked toml for git repo https://github.com/ping-ping2580/rust-web written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ping-ping2580/rust-web on toolchain 35d55b34bffd51384ac430cc20852b7d16dd5a90 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+35d55b34bffd51384ac430cc20852b7d16dd5a90" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ping-ping2580/rust-web 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" "+35d55b34bffd51384ac430cc20852b7d16dd5a90" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-1-tc1/source/wasm-client/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded awc v3.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+35d55b34bffd51384ac430cc20852b7d16dd5a90" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1f2a3f0c40264940c284250051b9a0abc4d20a9291b614086203da360da26484 [INFO] running `Command { std: "docker" "start" "-a" "1f2a3f0c40264940c284250051b9a0abc4d20a9291b614086203da360da26484", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1f2a3f0c40264940c284250051b9a0abc4d20a9291b614086203da360da26484", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f2a3f0c40264940c284250051b9a0abc4d20a9291b614086203da360da26484", kill_on_drop: false }` [INFO] [stdout] 1f2a3f0c40264940c284250051b9a0abc4d20a9291b614086203da360da26484 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+35d55b34bffd51384ac430cc20852b7d16dd5a90" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f5e271236aece8be56e3da64022379cbf48087afa30b54858fdd73ebcaed732b [INFO] running `Command { std: "docker" "start" "-a" "f5e271236aece8be56e3da64022379cbf48087afa30b54858fdd73ebcaed732b", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/wasm-client/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Compiling cc v1.2.30 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Checking foldhash v0.1.5 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Checking slab v0.4.10 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling openssl-src v300.5.1+3.5.1 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking deranged v0.4.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Checking indexmap v2.10.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking local-waker v0.1.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Compiling bumpalo v3.19.0 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Checking alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Checking alloc-stdlib v0.2.2 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking actix-utils v3.0.1 [INFO] [stderr] Checking actix-service v2.0.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.100 [INFO] [stderr] Checking adler2 v2.0.1 [INFO] [stderr] Compiling rustversion v1.0.21 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Compiling tokio v1.46.1 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking brotli-decompressor v5.0.0 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking bytestring v1.4.0 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling wasm-bindgen v0.2.100 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Checking derive_more v2.0.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling event-listener v5.4.0 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.100 [INFO] [stderr] Checking brotli v8.0.1 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking flate2 v1.1.2 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking actix-rt v2.10.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Checking local-channel v0.1.5 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking language-tags v0.3.2 [INFO] [stderr] Checking impl-more v0.1.9 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Checking actix-server v2.6.0 [INFO] [stderr] Checking js-sys v0.3.77 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Checking quote v1.0.40 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Checking actix-http v3.11.0 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling chrono-tz-build v0.3.0 [INFO] [stderr] Compiling pest v2.8.1 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking bstr v1.12.0 [INFO] [stderr] Checking web-sys v0.3.77 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Checking siphasher v1.0.1 [INFO] [stderr] Checking unic-char-range v0.9.0 [INFO] [stderr] Checking unic-common v0.9.0 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Checking unic-ucd-version v0.9.0 [INFO] [stderr] Checking unic-char-property v0.9.0 [INFO] [stderr] Checking phf_shared v0.11.3 [INFO] [stderr] Checking globset v0.4.16 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Compiling chrono-tz v0.9.0 [INFO] [stderr] Compiling pest_meta v2.8.1 [INFO] [stderr] Compiling v_htmlescape v0.15.8 [INFO] [stderr] Checking actix-web v4.11.0 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Checking ignore v0.4.23 [INFO] [stderr] Compiling pest_generator v2.8.1 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Checking unic-ucd-segment v0.9.0 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.50 [INFO] [stderr] Checking deunicode v1.6.2 [INFO] [stderr] Checking unic-segment v0.9.0 [INFO] [stderr] Checking slug v0.1.6 [INFO] [stderr] Checking actix-cors v0.6.5 [INFO] [stderr] Compiling pest_derive v2.8.1 [INFO] [stderr] Checking actix-tls v3.4.0 [INFO] [stderr] Checking humansize v2.1.3 [INFO] [stderr] Checking globwalk v0.9.1 [INFO] [stderr] Checking serde-wasm-bindgen v0.6.5 [INFO] [stderr] Checking console_error_panic_hook v0.1.7 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.3.50 [INFO] [stderr] Checking http-range v0.1.5 [INFO] [stderr] Checking actix-files v0.6.6 [INFO] [stderr] Checking awc v3.7.0 [INFO] [stderr] Checking wasm-bindgen-test v0.3.50 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking tera v1.20.0 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking wasm-client v0.1.0 (/opt/rustwide/workdir/wasm-client) [INFO] [stderr] Checking db v0.1.0 (/opt/rustwide/workdir/webservice) [INFO] [stderr] Checking webapp v0.1.0 (/opt/rustwide/workdir/webapp) [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> webservice/src/bin/../dbaccess/course.rs:59:22 [INFO] [stdout] | [INFO] [stdout] 59 | let course_row = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 60 | | "DELETE FROM course where teacher_id = $1 and id = $2", [INFO] [stdout] 61 | | teacher_id, [INFO] [stdout] 62 | | id, [INFO] [stdout] 63 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> webservice/src/bin/../dbaccess/teacher.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | let rows = sqlx::query!("SELECT id, name, picture_url, profile FROM teacher") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> webservice/src/bin/../dbaccess/teacher.rs:33:15 [INFO] [stdout] | [INFO] [stdout] 33 | let row = sqlx::query!( [INFO] [stdout] | _______________^ [INFO] [stdout] 34 | | "SELECT id, name, picture_url, profile FROM teacher where id = $1", [INFO] [stdout] 35 | | teacher_id [INFO] [stdout] 36 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> webservice/src/bin/../dbaccess/teacher.rs:56:15 [INFO] [stdout] | [INFO] [stdout] 56 | let row = sqlx::query!( [INFO] [stdout] | _______________^ [INFO] [stdout] 57 | | "INSERT INTO teacher (name, picture_url, profile) [INFO] [stdout] 58 | | VALUES ($1, $2, $3) RETURNING id, name, picture_url, profile", [INFO] [stdout] 59 | | new_teacher.name, [INFO] [stdout] 60 | | new_teacher.picture_url, [INFO] [stdout] 61 | | new_teacher.profile [INFO] [stdout] 62 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> webservice/src/bin/../dbaccess/teacher.rs:80:15 [INFO] [stdout] | [INFO] [stdout] 80 | let row = sqlx::query!( [INFO] [stdout] | _______________^ [INFO] [stdout] 81 | | "SELECT id, name, picture_url, profile FROM teacher where id = $1", [INFO] [stdout] 82 | | teacher_id [INFO] [stdout] 83 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> webservice/src/bin/../dbaccess/teacher.rs:108:22 [INFO] [stdout] | [INFO] [stdout] 108 | let update_row = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 109 | | "UPDATE teacher SET name = $1, picture_url = $2, profile = $3 WHERE id = $4 [INFO] [stdout] 110 | | RETURNING id, name, picture_url, profile", [INFO] [stdout] 111 | | temp.name, [INFO] [stdout] ... | [INFO] [stdout] 114 | | teacher_id [INFO] [stdout] 115 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `wee_alloc` [INFO] [stdout] --> wasm-client/src/lib.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(feature = "wee_alloc")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `console_error_panic_hook` and `default` [INFO] [stdout] = help: consider adding `wee_alloc` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> wasm-client/src/lib.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | use web_sys::{HtmlButtonElement, Response}; // 只保留实际使用的类型 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_web::web` [INFO] [stdout] --> wasm-client/src/models/course.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::web; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> wasm-client/src/models/course.rs:4:29 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{NaiveDateTime, Utc,}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `convert::TryFrom` and `slice::Windows` [INFO] [stdout] --> wasm-client/src/models/course.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{convert::TryFrom, slice::Windows};//与from trait冲突 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> webservice/src/bin/../dbaccess/course.rs:59:22 [INFO] [stdout] | [INFO] [stdout] 59 | let course_row = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 60 | | "DELETE FROM course where teacher_id = $1 and id = $2", [INFO] [stdout] 61 | | teacher_id, [INFO] [stdout] 62 | | id, [INFO] [stdout] 63 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> webservice/src/bin/../dbaccess/teacher.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | let rows = sqlx::query!("SELECT id, name, picture_url, profile FROM teacher") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> webservice/src/bin/../dbaccess/teacher.rs:33:15 [INFO] [stdout] | [INFO] [stdout] 33 | let row = sqlx::query!( [INFO] [stdout] | _______________^ [INFO] [stdout] 34 | | "SELECT id, name, picture_url, profile FROM teacher where id = $1", [INFO] [stdout] 35 | | teacher_id [INFO] [stdout] 36 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> webservice/src/bin/../dbaccess/teacher.rs:56:15 [INFO] [stdout] | [INFO] [stdout] 56 | let row = sqlx::query!( [INFO] [stdout] | _______________^ [INFO] [stdout] 57 | | "INSERT INTO teacher (name, picture_url, profile) [INFO] [stdout] 58 | | VALUES ($1, $2, $3) RETURNING id, name, picture_url, profile", [INFO] [stdout] 59 | | new_teacher.name, [INFO] [stdout] 60 | | new_teacher.picture_url, [INFO] [stdout] 61 | | new_teacher.profile [INFO] [stdout] 62 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> webservice/src/bin/../dbaccess/teacher.rs:80:15 [INFO] [stdout] | [INFO] [stdout] 80 | let row = sqlx::query!( [INFO] [stdout] | _______________^ [INFO] [stdout] 81 | | "SELECT id, name, picture_url, profile FROM teacher where id = $1", [INFO] [stdout] 82 | | teacher_id [INFO] [stdout] 83 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> webservice/src/bin/../dbaccess/teacher.rs:108:22 [INFO] [stdout] | [INFO] [stdout] 108 | let update_row = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 109 | | "UPDATE teacher SET name = $1, picture_url = $2, profile = $3 WHERE id = $4 [INFO] [stdout] 110 | | RETURNING id, name, picture_url, profile", [INFO] [stdout] 111 | | temp.name, [INFO] [stdout] ... | [INFO] [stdout] 114 | | teacher_id [INFO] [stdout] 115 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `wee_alloc` [INFO] [stdout] --> wasm-client/src/lib.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(feature = "wee_alloc")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `console_error_panic_hook` and `default` [INFO] [stdout] = help: consider adding `wee_alloc` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> wasm-client/src/lib.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | use web_sys::{HtmlButtonElement, Response}; // 只保留实际使用的类型 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_web::web` [INFO] [stdout] --> wasm-client/src/models/course.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::web; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> wasm-client/src/models/course.rs:4:29 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{NaiveDateTime, Utc,}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `convert::TryFrom` and `slice::Windows` [INFO] [stdout] --> wasm-client/src/models/course.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{convert::TryFrom, slice::Windows};//与from trait冲突 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `database` [INFO] [stdout] --> webservice/src/bin/teacher-service.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{database, ConnectOptions}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PgConnectOptions` [INFO] [stdout] --> webservice/src/bin/teacher-service.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use sqlx::postgres::{PgConnectOptions, PgPoolOptions}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::DateTime` [INFO] [stdout] --> webservice/src/bin/../dbaccess/course.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::DateTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::types::time::OffsetDateTime` [INFO] [stdout] --> webservice/src/bin/../dbaccess/course.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sqlx::types::time::OffsetDateTime; // 仅用于绑定,保持兼容 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dbaccess::teacher` [INFO] [stdout] --> webservice/src/bin/../dbaccess/teacher.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::dbaccess::teacher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::pool` [INFO] [stdout] --> webservice/src/bin/../dbaccess/teacher.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::pool; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syn::VisRestricted` [INFO] [stdout] --> webservice/src/bin/../dbaccess/teacher.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use syn::VisRestricted; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> webservice/src/bin/../errors.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::{self, write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Course` [INFO] [stdout] --> webservice/src/bin/../handlers/course.rs:6:43 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::models::course::{CreateCourse, Course, UpdateCourse}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `f32::consts::E` [INFO] [stdout] --> webservice/src/bin/../handlers/course.rs:72:15 [INFO] [stdout] | [INFO] [stdout] 72 | use std::{f32::consts::E, sync::Mutex}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::panic::panic_any` [INFO] [stdout] --> webservice/src/bin/../handlers/teacher.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::panic::panic_any; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::postgres::PgConnectOptions` [INFO] [stdout] --> webservice/src/bin/../handlers/teacher.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::postgres::PgConnectOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `App` [INFO] [stdout] --> webservice/src/bin/../handlers/teacher.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use actix_web::{web, App, HttpResponse}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dbaccess::teacher` [INFO] [stdout] --> webservice/src/bin/../models/course.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{dbaccess::teacher, errors::MyError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `database` [INFO] [stdout] --> webservice/src/bin/teacher-service.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{database, ConnectOptions}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PgConnectOptions` [INFO] [stdout] --> webservice/src/bin/teacher-service.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use sqlx::postgres::{PgConnectOptions, PgPoolOptions}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::DateTime` [INFO] [stdout] --> webservice/src/bin/../dbaccess/course.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::DateTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::types::time::OffsetDateTime` [INFO] [stdout] --> webservice/src/bin/../dbaccess/course.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sqlx::types::time::OffsetDateTime; // 仅用于绑定,保持兼容 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dbaccess::teacher` [INFO] [stdout] --> webservice/src/bin/../dbaccess/teacher.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::dbaccess::teacher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::pool` [INFO] [stdout] --> webservice/src/bin/../dbaccess/teacher.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::pool; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syn::VisRestricted` [INFO] [stdout] --> webservice/src/bin/../dbaccess/teacher.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use syn::VisRestricted; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> webservice/src/bin/../errors.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::{self, write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Course` [INFO] [stdout] --> webservice/src/bin/../handlers/course.rs:6:43 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::models::course::{CreateCourse, Course, UpdateCourse}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::panic::panic_any` [INFO] [stdout] --> webservice/src/bin/../handlers/teacher.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::panic::panic_any; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::postgres::PgConnectOptions` [INFO] [stdout] --> webservice/src/bin/../handlers/teacher.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::postgres::PgConnectOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `App` [INFO] [stdout] --> webservice/src/bin/../handlers/teacher.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use actix_web::{web, App, HttpResponse}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dbaccess::teacher` [INFO] [stdout] --> webservice/src/bin/../models/course.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{dbaccess::teacher, errors::MyError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::RequestInit::method`: Use `set_method()` instead. [INFO] [stdout] --> wasm-client/src/models/course.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | opts.method("GET"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::RequestInit::mode`: Use `set_mode()` instead. [INFO] [stdout] --> wasm-client/src/models/course.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | opts.mode(RequestMode::Cors); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::RequestInit::method`: Use `set_method()` instead. [INFO] [stdout] --> wasm-client/src/models/course.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | opts.method("GET"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::RequestInit::mode`: Use `set_mode()` instead. [INFO] [stdout] --> wasm-client/src/models/course.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | opts.mode(RequestMode::Cors); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::RequestInit::method`: Use `set_method()` instead. [INFO] [stdout] --> wasm-client/src/models/course.rs:60:10 [INFO] [stdout] | [INFO] [stdout] 60 | opts.method("DELETE"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::RequestInit::mode`: Use `set_mode()` instead. [INFO] [stdout] --> wasm-client/src/models/course.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 61 | opts.mode(RequestMode::Cors); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::RequestInit::method`: Use `set_method()` instead. [INFO] [stdout] --> wasm-client/src/models/course.rs:60:10 [INFO] [stdout] | [INFO] [stdout] 60 | opts.method("DELETE"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::RequestInit::mode`: Use `set_mode()` instead. [INFO] [stdout] --> wasm-client/src/models/course.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 61 | opts.mode(RequestMode::Cors); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::RequestInit::method`: Use `set_method()` instead. [INFO] [stdout] --> wasm-client/src/models/course.rs:91:10 [INFO] [stdout] | [INFO] [stdout] 91 | opts.method("POST"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::RequestInit::mode`: Use `set_mode()` instead. [INFO] [stdout] --> wasm-client/src/models/course.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 92 | opts.mode(RequestMode::Cors); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::RequestInit::body`: Use `set_body()` instead. [INFO] [stdout] --> wasm-client/src/models/course.rs:106:10 [INFO] [stdout] | [INFO] [stdout] 106 | opts.body(Some(&JsValue::from_str(&str_json.as_str()))); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::RequestInit::method`: Use `set_method()` instead. [INFO] [stdout] --> wasm-client/src/models/course.rs:91:10 [INFO] [stdout] | [INFO] [stdout] 91 | opts.method("POST"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::RequestInit::mode`: Use `set_mode()` instead. [INFO] [stdout] --> wasm-client/src/models/course.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 92 | opts.mode(RequestMode::Cors); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::RequestInit::body`: Use `set_body()` instead. [INFO] [stdout] --> wasm-client/src/models/course.rs:106:10 [INFO] [stdout] | [INFO] [stdout] 106 | opts.body(Some(&JsValue::from_str(&str_json.as_str()))); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_panic_hook` is never used [INFO] [stdout] --> wasm-client/src/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn set_panic_hook() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_panic_hook` is never used [INFO] [stdout] --> wasm-client/src/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn set_panic_hook() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ConnectOptions` [INFO] [stdout] --> webservice/src/bin/teacher-service.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{database, ConnectOptions}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ConnectOptions` [INFO] [stdout] --> webservice/src/bin/teacher-service.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{database, ConnectOptions}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cors` [INFO] [stdout] --> webservice/src/bin/teacher-service.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let cors = Cors::default() [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cors` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `db` (bin "teacher-service" test) due to 6 previous errors; 16 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `cors` [INFO] [stdout] --> webservice/src/bin/teacher-service.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let cors = Cors::default() [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cors` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `db` (bin "teacher-service") due to 6 previous errors; 15 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f5e271236aece8be56e3da64022379cbf48087afa30b54858fdd73ebcaed732b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f5e271236aece8be56e3da64022379cbf48087afa30b54858fdd73ebcaed732b", kill_on_drop: false }` [INFO] [stdout] f5e271236aece8be56e3da64022379cbf48087afa30b54858fdd73ebcaed732b