[INFO] fetching crate rusql-alchemy 0.5.2... [INFO] testing rusql-alchemy-0.5.2 against beta-2025-10-28 for beta-1.92-2 [INFO] extracting crate rusql-alchemy 0.5.2 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate rusql-alchemy 0.5.2 [INFO] finished tweaking crates.io crate rusql-alchemy 0.5.2 [INFO] tweaked toml for crates.io crate rusql-alchemy 0.5.2 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rusql-alchemy 0.5.2 on toolchain beta-2025-10-28 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-10-28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rusql-alchemy 0.5.2 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" "+beta-2025-10-28" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-10-28" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c4de0e7966dbfa7898fa36c5494aa2a33e42c33e4f29cb85b2061d61a944f8d3 [INFO] running `Command { std: "docker" "start" "-a" "c4de0e7966dbfa7898fa36c5494aa2a33e42c33e4f29cb85b2061d61a944f8d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c4de0e7966dbfa7898fa36c5494aa2a33e42c33e4f29cb85b2061d61a944f8d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c4de0e7966dbfa7898fa36c5494aa2a33e42c33e4f29cb85b2061d61a944f8d3", kill_on_drop: false }` [INFO] [stdout] c4de0e7966dbfa7898fa36c5494aa2a33e42c33e4f29cb85b2061d61a944f8d3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-10-28" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dbe7f7b26fe38c8c4bf7c5020340f0ff10d7e5f98822f9f92de98d1f3808b340 [INFO] running `Command { std: "docker" "start" "-a" "dbe7f7b26fe38c8c4bf7c5020340f0ff10d7e5f98822f9f92de98d1f3808b340", kill_on_drop: false }` [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling cc v1.2.41 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling rustls v0.23.34 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling syn v2.0.108 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling webpki-roots v1.0.3 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling if_chain v1.0.3 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling inventory v0.3.21 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling deluxe-core v0.5.0 [INFO] [stderr] Compiling sqlformat v0.5.0 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling rustls-webpki v0.103.7 [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 serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling deluxe-macros v0.5.0 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling deluxe v0.5.0 [INFO] [stderr] Compiling rusql-alchemy-derive v0.5.2 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Compiling sqlx-sqlite v0.8.6 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Compiling sqlx v0.8.6 [INFO] [stderr] Compiling rusql-alchemy v0.5.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 27s [INFO] running `Command { std: "docker" "inspect" "dbe7f7b26fe38c8c4bf7c5020340f0ff10d7e5f98822f9f92de98d1f3808b340", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbe7f7b26fe38c8c4bf7c5020340f0ff10d7e5f98822f9f92de98d1f3808b340", kill_on_drop: false }` [INFO] [stdout] dbe7f7b26fe38c8c4bf7c5020340f0ff10d7e5f98822f9f92de98d1f3808b340 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-10-28" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 53dd1696cf62017db456bdf74fe4dffb8fdb0c57819526fe8eddd937a68127a1 [INFO] running `Command { std: "docker" "start" "-a" "53dd1696cf62017db456bdf74fe4dffb8fdb0c57819526fe8eddd937a68127a1", kill_on_drop: false }` [INFO] [stderr] Compiling rusql-alchemy v0.5.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.05s [INFO] running `Command { std: "docker" "inspect" "53dd1696cf62017db456bdf74fe4dffb8fdb0c57819526fe8eddd937a68127a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53dd1696cf62017db456bdf74fe4dffb8fdb0c57819526fe8eddd937a68127a1", kill_on_drop: false }` [INFO] [stdout] 53dd1696cf62017db456bdf74fe4dffb8fdb0c57819526fe8eddd937a68127a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-10-28" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9d01467620b020d5d9df48b03d92c258ec57a205ef73ca7b228197c73e31276e [INFO] running `Command { std: "docker" "start" "-a" "9d01467620b020d5d9df48b03d92c258ec57a205ef73ca7b228197c73e31276e", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.30s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rusql_alchemy-4f697be7e5c2b2ef) [INFO] [stderr] Doc-tests rusql_alchemy [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 16 tests [INFO] [stdout] test src/db/models.rs - db::models::Model::filter (line 442) ... FAILED [INFO] [stdout] test src/db/models.rs - db::models::Model::create (line 254) ... FAILED [INFO] [stdout] test src/db/models.rs - db::models::Model::get (line 496) ... FAILED [INFO] [stdout] test src/db/models.rs - db::models::Model::update (line 306) ... FAILED [INFO] [stdout] test src/lib.rs - Database::migrate (line 149) ... ignored [INFO] [stdout] test src/db/models.rs - db::models::Model::migrate (line 191) ... FAILED [INFO] [stdout] test src/db/models.rs - db::models::Model::delete (line 388) ... FAILED [INFO] [stdout] test src/db/models.rs - db::models::Model::save (line 228) ... FAILED [INFO] [stdout] test src/db/models.rs - db::models::Model::set (line 331) ... FAILED [INFO] [stdout] test src/db/models.rs - db::models::Model::all (line 405) ... FAILED [INFO] [stdout] test src/macros.rs - macros::binds (line 72) ... FAILED [INFO] [stdout] test src/db/models.rs - db::models::Model::count (line 528) ... FAILED [INFO] [stdout] test src/utils.rs - utils::to_string (line 36) ... FAILED [INFO] [stdout] test src/macros.rs - macros::kwargs (line 8) ... FAILED [INFO] [stdout] test src/utils.rs - utils::get_type_name (line 15) ... FAILED [INFO] [stdout] test src/db/models.rs - db::models::Vec::delete (line 577) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/db/models.rs - db::models::Model::filter (line 442) stdout ---- [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> src/db/models.rs:444:28 [INFO] [stdout] | [INFO] [stdout] 4 | kwargs!(age <= 18).and(kwargs!(weight == 80.0)), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> src/db/models.rs:444:5 [INFO] [stdout] | [INFO] [stdout] 4 | kwargs!(age <= 18).and(kwargs!(weight == 80.0)), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:445:6 [INFO] [stdout] | [INFO] [stdout] 5 | &conn, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/db/models.rs:446:3 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_442_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 6 | ).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> src/db/models.rs:443:13 [INFO] [stdout] | [INFO] [stdout] 3 | let users = User::filter( [INFO] [stdout] | ^^^^ use of undeclared type `User` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/db/models.rs - db::models::Model::create (line 254) stdout ---- [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> src/db/models.rs:256:5 [INFO] [stdout] | [INFO] [stdout] 4 | kwargs!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:263:6 [INFO] [stdout] | [INFO] [stdout] 11 | &conn, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/db/models.rs:264:3 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_254_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | ).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> src/db/models.rs:255:15 [INFO] [stdout] | [INFO] [stdout] 3 | let success = User::create( [INFO] [stdout] | ^^^^ use of undeclared type `User` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/db/models.rs - db::models::Model::get (line 496) stdout ---- [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> src/db/models.rs:498:51 [INFO] [stdout] | [INFO] [stdout] 4 | kwargs!(email == "24nomeniavo@gmail.com").and(kwargs!(password == "strongpassword")), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> src/db/models.rs:498:5 [INFO] [stdout] | [INFO] [stdout] 4 | kwargs!(email == "24nomeniavo@gmail.com").and(kwargs!(password == "strongpassword")), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:499:6 [INFO] [stdout] | [INFO] [stdout] 5 | &conn, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/db/models.rs:500:3 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_496_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 6 | ).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> src/db/models.rs:497:12 [INFO] [stdout] | [INFO] [stdout] 3 | let user = User::get( [INFO] [stdout] | ^^^^ use of undeclared type `User` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/db/models.rs - db::models::Model::update (line 306) stdout ---- [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> src/db/models.rs:308:5 [INFO] [stdout] | [INFO] [stdout] 4 | kwargs!(email == "24nomeniavo@gmail.com").and(kwargs!(password == "strongpassword")), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> src/db/models.rs:308:51 [INFO] [stdout] | [INFO] [stdout] 4 | kwargs!(email == "24nomeniavo@gmail.com").and(kwargs!(password == "strongpassword")), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:309:6 [INFO] [stdout] | [INFO] [stdout] 5 | &conn, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:312:32 [INFO] [stdout] | [INFO] [stdout] 8 | let success = user.update(&conn).await; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/db/models.rs:310:3 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_306_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 6 | ).await { [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/db/models.rs:312:38 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_306_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 8 | let success = user.update(&conn).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> src/db/models.rs:307:25 [INFO] [stdout] | [INFO] [stdout] 3 | if let Some(mut user) = User::get( [INFO] [stdout] | ^^^^ use of undeclared type `User` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/db/models.rs - db::models::Model::migrate (line 191) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:192:30 [INFO] [stdout] | [INFO] [stdout] 3 | let success = User::migrate(&conn).await; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/db/models.rs:192:36 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_191_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] 3 | let success = User::migrate(&conn).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> src/db/models.rs:192:15 [INFO] [stdout] | [INFO] [stdout] 3 | let success = User::migrate(&conn).await; [INFO] [stdout] | ^^^^ use of undeclared type `User` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/db/models.rs - db::models::Model::delete (line 388) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `user` in this scope [INFO] [stdout] --> src/db/models.rs:389:15 [INFO] [stdout] | [INFO] [stdout] 3 | let success = user.delete(&conn).await; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:389:28 [INFO] [stdout] | [INFO] [stdout] 3 | let success = user.delete(&conn).await; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/db/models.rs:389:34 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_388_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] 3 | let success = user.delete(&conn).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/db/models.rs - db::models::Model::save (line 228) stdout ---- [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `User` in this scope [INFO] [stdout] --> src/db/models.rs:229:12 [INFO] [stdout] | [INFO] [stdout] 3 | let user = User { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:237:26 [INFO] [stdout] | [INFO] [stdout] 11 | let success = user.save(&conn).await; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/db/models.rs:237:32 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_228_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 11 | let success = user.save(&conn).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/db/models.rs - db::models::Model::set (line 331) stdout ---- [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> src/db/models.rs:334:5 [INFO] [stdout] | [INFO] [stdout] 5 | kwargs!(role = "admin"), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `user_id` in this scope [INFO] [stdout] --> src/db/models.rs:333:5 [INFO] [stdout] | [INFO] [stdout] 4 | user_id, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:335:6 [INFO] [stdout] | [INFO] [stdout] 6 | &conn, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/db/models.rs:336:3 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_331_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | ).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> src/db/models.rs:332:15 [INFO] [stdout] | [INFO] [stdout] 3 | let success = User::set( [INFO] [stdout] | ^^^^ use of undeclared type `User` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/db/models.rs - db::models::Model::all (line 405) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:406:24 [INFO] [stdout] | [INFO] [stdout] 3 | let users = User::all(&conn).await; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/db/models.rs:406:30 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_405_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] 3 | let users = User::all(&conn).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> src/db/models.rs:406:13 [INFO] [stdout] | [INFO] [stdout] 3 | let users = User::all(&conn).await; [INFO] [stdout] | ^^^^ use of undeclared type `User` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros.rs - macros::binds (line 72) stdout ---- [INFO] [stdout] error: cannot find macro `binds` in this scope [INFO] [stdout] --> src/macros.rs:79:1 [INFO] [stdout] | [INFO] [stdout] 9 | binds!(args, stream); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `some_stream` in this scope [INFO] [stdout] --> src/macros.rs:78:14 [INFO] [stdout] | [INFO] [stdout] 8 | let stream = some_stream(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/db/models.rs - db::models::Model::count (line 528) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/db/models.rs:529:26 [INFO] [stdout] | [INFO] [stdout] 3 | let count = User::count(&conn).await; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/db/models.rs:529:32 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_models_rs_528_0() { [INFO] [stdout] | ----------------------------------------- this is not `async` [INFO] [stdout] 3 | let count = User::count(&conn).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> src/db/models.rs:529:13 [INFO] [stdout] | [INFO] [stdout] 3 | let count = User::count(&conn).await; [INFO] [stdout] | ^^^^ use of undeclared type `User` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/utils.rs - utils::to_string (line 36) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `to_string` in this scope [INFO] [stdout] --> src/utils.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 3 | let json_string = to_string(true); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 2 + use rusql_alchemy::to_string; [INFO] [stdout] | [INFO] [stdout] 2 + use serde_json::to_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_string` in this scope [INFO] [stdout] --> src/utils.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 6 | let json_string = to_string("Hello"); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 6 - let json_string = to_string("Hello"); [INFO] [stdout] 6 + let json_string = json_string("Hello"); [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 2 + use rusql_alchemy::to_string; [INFO] [stdout] | [INFO] [stdout] 2 + use serde_json::to_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros.rs - macros::kwargs (line 8) stdout ---- [INFO] [stdout] error: cannot find macro `kwargs` in this scope [INFO] [stdout] --> src/macros.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 3 | let conditions = kwargs!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use rusql_alchemy::kwargs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/utils.rs - utils::get_type_name (line 15) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `get_type_name` in this scope [INFO] [stdout] --> src/utils.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 3 | let type_name = get_type_name(42); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use rusql_alchemy::get_type_name; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/db/models.rs - db::models::Vec::delete (line 577) stdout ---- [INFO] [stdout] error: unexpected token: `.` [INFO] [stdout] --> src/db/models.rs:582:35 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(FromRow, Debug, Default, Model, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Model` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: proc-macro derive produced unparsable tokens [INFO] [stdout] --> src/db/models.rs:582:35 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(FromRow, Debug, Default, Model, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: expected identifier or integer [INFO] [stdout] --> src/db/models.rs:582:35 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(FromRow, Debug, Default, Model, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Model` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/db/models.rs:598:3 [INFO] [stdout] | [INFO] [stdout] 23 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `model` in this scope [INFO] [stdout] --> src/db/models.rs:584:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[model(primary_key = true, auto = true)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `model` in this scope [INFO] [stdout] --> src/db/models.rs:586:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[model(size = 50)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `model` in this scope [INFO] [stdout] --> src/db/models.rs:590:7 [INFO] [stdout] | [INFO] [stdout] 15 | #[model(default = true)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `model` in this scope [INFO] [stdout] --> src/db/models.rs:592:7 [INFO] [stdout] | [INFO] [stdout] 17 | #[model(foreign_key = "User.id")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `model` in this scope [INFO] [stdout] --> src/db/models.rs:594:7 [INFO] [stdout] | [INFO] [stdout] 19 | #[model(default = "now")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0119]: conflicting implementations of trait `Default` for type `Product` [INFO] [stdout] --> src/db/models.rs:582:35 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(FromRow, Debug, Default, Model, Clone)] [INFO] [stdout] | ------- ^^^^^ conflicting implementation for `Product` [INFO] [stdout] | | [INFO] [stdout] | first implementation here [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Model` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/db/models.rs:600:16 [INFO] [stdout] | [INFO] [stdout] 25 | let conn = Database::new().await.conn; [INFO] [stdout] | ^^^^^^^^^^^^^-- argument #1 of type `&str` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:60:18 [INFO] [stdout] | [INFO] [stdout] 60 | pub async fn new(database_url: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 25 | let conn = Database::new(/* &str */).await.conn; [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `conn` on type `Result>` [INFO] [stdout] --> src/db/models.rs:600:38 [INFO] [stdout] | [INFO] [stdout] 25 | let conn = Database::new().await.conn; [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 25 | let conn = Database::new().await.unwrap().conn; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: `Product` is not an iterator [INFO] [stdout] --> src/db/models.rs:602:29 [INFO] [stdout] | [INFO] [stdout] 8 | struct Product { [INFO] [stdout] | -------------- function or associated item `all` not found for this struct because it doesn't satisfy `Product: Iterator` [INFO] [stdout] ... [INFO] [stdout] 27 | let products = Product::all(&conn).await; [INFO] [stdout] | ^^^ `Product` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Product: Iterator` [INFO] [stdout] which is required by `&mut Product: Iterator` [INFO] [stdout] note: the trait `Iterator` must be implemented [INFO] [stdout] --> /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/core/src/iter/traits/iterator.rs:40:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `all`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Iterator` [INFO] [stdout] candidate #2: `futures_util::stream::stream::StreamExt` [INFO] [stdout] candidate #3: `rusql_alchemy::prelude::Model` [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/db/models.rs:602:9 [INFO] [stdout] | [INFO] [stdout] 27 | let products = Product::all(&conn).await; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 28 | let success = products.delete(&conn).await; [INFO] [stdout] | -------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `products` an explicit type [INFO] [stdout] | [INFO] [stdout] 27 | let products: /* Type */ = Product::all(&conn).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: `Product` is not an iterator [INFO] [stdout] --> src/db/models.rs:606:29 [INFO] [stdout] | [INFO] [stdout] 8 | struct Product { [INFO] [stdout] | -------------- function or associated item `all` not found for this struct because it doesn't satisfy `Product: Iterator` [INFO] [stdout] ... [INFO] [stdout] 31 | let products = Product::all(&conn).await; [INFO] [stdout] | ^^^ `Product` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Product: Iterator` [INFO] [stdout] which is required by `&mut Product: Iterator` [INFO] [stdout] note: the trait `Iterator` must be implemented [INFO] [stdout] --> /rustc/3b4dd9bf1410f8da6329baa36ce5e37673cbbd1f/library/core/src/iter/traits/iterator.rs:40:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `all`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Iterator` [INFO] [stdout] candidate #2: `futures_util::stream::stream::StreamExt` [INFO] [stdout] candidate #3: `rusql_alchemy::prelude::Model` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/db/models.rs:599:1 [INFO] [stdout] | [INFO] [stdout] 24 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `migrate` found for struct `Product` in the current scope [INFO] [stdout] --> src/db/models.rs:582:35 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(FromRow, Debug, Default, Model, Clone)] [INFO] [stdout] | ^^^^^ function or associated item not found in `Product` [INFO] [stdout] 8 | struct Product { [INFO] [stdout] | -------------- function or associated item `migrate` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `migrate`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `rusql_alchemy::prelude::Model` [INFO] [stdout] = note: this error originates in the derive macro `Model` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0119, E0282, E0433, E0599, E0609, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/db/models.rs - db::models::Model::all (line 405) [INFO] [stdout] src/db/models.rs - db::models::Model::count (line 528) [INFO] [stdout] src/db/models.rs - db::models::Model::create (line 254) [INFO] [stdout] src/db/models.rs - db::models::Model::delete (line 388) [INFO] [stdout] src/db/models.rs - db::models::Model::filter (line 442) [INFO] [stdout] src/db/models.rs - db::models::Model::get (line 496) [INFO] [stdout] src/db/models.rs - db::models::Model::migrate (line 191) [INFO] [stdout] src/db/models.rs - db::models::Model::save (line 228) [INFO] [stdout] src/db/models.rs - db::models::Model::set (line 331) [INFO] [stdout] src/db/models.rs - db::models::Model::update (line 306) [INFO] [stdout] src/db/models.rs - db::models::Vec::delete (line 577) [INFO] [stdout] src/macros.rs - macros::binds (line 72) [INFO] [stdout] src/macros.rs - macros::kwargs (line 8) [INFO] [stdout] src/utils.rs - utils::get_type_name (line 15) [INFO] [stdout] src/utils.rs - utils::to_string (line 36) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 15 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.82s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "9d01467620b020d5d9df48b03d92c258ec57a205ef73ca7b228197c73e31276e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d01467620b020d5d9df48b03d92c258ec57a205ef73ca7b228197c73e31276e", kill_on_drop: false }` [INFO] [stdout] 9d01467620b020d5d9df48b03d92c258ec57a205ef73ca7b228197c73e31276e