[INFO] cloning repository https://github.com/hn63wospuvy/sqlx-template [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hn63wospuvy/sqlx-template" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhn63wospuvy%2Fsqlx-template", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhn63wospuvy%2Fsqlx-template'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 84e642b1f9e9fd04767c4896d5de992c95c5b051 [INFO] checking hn63wospuvy/sqlx-template against master#cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhn63wospuvy%2Fsqlx-template" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/hn63wospuvy/sqlx-template [INFO] finished tweaking git repo https://github.com/hn63wospuvy/sqlx-template [INFO] tweaked toml for git repo https://github.com/hn63wospuvy/sqlx-template written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/hn63wospuvy/sqlx-template on toolchain cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/hn63wospuvy/sqlx-template 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" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "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] Downloading crates ... [INFO] [stderr] Downloaded sqlformat v0.2.4 [INFO] [stderr] Downloaded uuid v1.9.1 [INFO] [stderr] Downloaded unicode-properties v0.1.1 [INFO] [stderr] Downloaded rust-format v0.3.4 [INFO] [stderr] Downloaded whoami v1.5.1 [INFO] [stderr] Downloaded tinyvec v1.7.0 [INFO] [stderr] Downloaded sqlx-mysql v0.7.4 [INFO] [stderr] Downloaded rsa v0.9.6 [INFO] [stderr] Downloaded cc v1.0.106 [INFO] [stderr] Downloaded sqlx-postgres v0.7.4 [INFO] [stderr] Downloaded syn v2.0.69 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] be484e160cbaf432416c88fa6d3b4db18d4ae4118579673a2013a32055c7a161 [INFO] running `Command { std: "docker" "start" "-a" "be484e160cbaf432416c88fa6d3b4db18d4ae4118579673a2013a32055c7a161", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "be484e160cbaf432416c88fa6d3b4db18d4ae4118579673a2013a32055c7a161", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be484e160cbaf432416c88fa6d3b4db18d4ae4118579673a2013a32055c7a161", kill_on_drop: false }` [INFO] [stdout] be484e160cbaf432416c88fa6d3b4db18d4ae4118579673a2013a32055c7a161 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 29ee3d3056db81d21ddcb0b4b43eac52f808cc9e3ec1449116b639200ef5cd06 [INFO] running `Command { std: "docker" "start" "-a" "29ee3d3056db81d21ddcb0b4b43eac52f808cc9e3ec1449116b639200ef5cd06", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling tinyvec v1.7.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling cc v1.0.106 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling sqlformat v0.2.4 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling syn v2.0.69 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling tokio v1.38.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling uuid v1.9.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling unicode-properties v0.1.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling whoami v1.5.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking unicode-ident v1.0.12 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Compiling sqlparser v0.47.0 [INFO] [stderr] Compiling rust-format v0.3.4 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling tokio-stream v0.1.15 [INFO] [stderr] Checking structopt v0.3.26 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking sqlx-template v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking sqlx-core v0.7.4 [INFO] [stderr] Checking sqlx-sqlite v0.7.4 [INFO] [stderr] Checking sqlx-postgres v0.7.4 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking sqlite v0.1.1 (/opt/rustwide/workdir/examples/sqlite) [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:185:10 [INFO] [stdout] | [INFO] [stdout] 185 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:185:10 [INFO] [stdout] | [INFO] [stdout] 185 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:185:26 [INFO] [stdout] | [INFO] [stdout] 185 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:185:26 [INFO] [stdout] | [INFO] [stdout] 185 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:185:42 [INFO] [stdout] | [INFO] [stdout] 185 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:185:42 [INFO] [stdout] | [INFO] [stdout] 185 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:185:58 [INFO] [stdout] | [INFO] [stdout] 185 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:185:58 [INFO] [stdout] | [INFO] [stdout] 185 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:215:10 [INFO] [stdout] | [INFO] [stdout] 215 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:215:10 [INFO] [stdout] | [INFO] [stdout] 215 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:215:42 [INFO] [stdout] | [INFO] [stdout] 215 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:215:42 [INFO] [stdout] | [INFO] [stdout] 215 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:215:58 [INFO] [stdout] | [INFO] [stdout] 215 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:215:58 [INFO] [stdout] | [INFO] [stdout] 215 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:233:10 [INFO] [stdout] | [INFO] [stdout] 233 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug, Columns)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:233:10 [INFO] [stdout] | [INFO] [stdout] 233 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug, Columns)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:233:42 [INFO] [stdout] | [INFO] [stdout] 233 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug, Columns)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:233:42 [INFO] [stdout] | [INFO] [stdout] 233 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug, Columns)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:233:58 [INFO] [stdout] | [INFO] [stdout] 233 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug, Columns)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:233:58 [INFO] [stdout] | [INFO] [stdout] 233 | #[derive(InsertTemplate, UpdateTemplate, SelectTemplate, DeleteTemplate, FromRow, TableName, Default, Clone, Debug, Columns)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: custom attribute panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:255:1 [INFO] [stdout] | [INFO] [stdout] 255 | #[multi_query(file = "sql/init.sql", 0)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: custom attribute panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:255:1 [INFO] [stdout] | [INFO] [stdout] 255 | #[multi_query(file = "sql/init.sql", 0)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: custom attribute panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:259:1 [INFO] [stdout] | [INFO] [stdout] 259 | #[insert("INSERT INTO users(email, password, org, active, created_by, updated_by, updated_at) VALUES (:email, :password, :org, true, NULL, NULL, NULL)")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: custom attribute panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:259:1 [INFO] [stdout] | [INFO] [stdout] 259 | #[insert("INSERT INTO users(email, password, org, active, created_by, updated_by, updated_at) VALUES (:email, :password, :org, true, NULL, NULL, NULL)")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: custom attribute panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:262:1 [INFO] [stdout] | [INFO] [stdout] 262 | / #[select( [INFO] [stdout] 263 | | sql = " [INFO] [stdout] 264 | | SELECT * [INFO] [stdout] 265 | | FROM users [INFO] [stdout] ... | [INFO] [stdout] 268 | | debug = 100 [INFO] [stdout] 269 | | )] [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: custom attribute panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:262:1 [INFO] [stdout] | [INFO] [stdout] 262 | / #[select( [INFO] [stdout] 263 | | sql = " [INFO] [stdout] 264 | | SELECT * [INFO] [stdout] 265 | | FROM users [INFO] [stdout] ... | [INFO] [stdout] 268 | | debug = 100 [INFO] [stdout] 269 | | )] [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: custom attribute panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:272:1 [INFO] [stdout] | [INFO] [stdout] 272 | / #[select(" [INFO] [stdout] 273 | | SELECT organizations.id, organizations.name [INFO] [stdout] 274 | | FROM organizations [INFO] [stdout] 275 | | JOIN users ON users.org = organizations.id [INFO] [stdout] 276 | | WHERE users.email LIKE '%' || :name || '%' [INFO] [stdout] 277 | | GROUP BY organizations.id [INFO] [stdout] 278 | | ")] [INFO] [stdout] | |___^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `query` and `update` [INFO] [stdout] --> examples/sqlite/src/main.rs:4:42 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx_template::{insert, multi_query, query, select, update, Columns, DeleteTemplate, SelectTemplate, TableName, UpdateTemplate}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Json` [INFO] [stdout] --> examples/sqlite/src/main.rs:5:72 [INFO] [stdout] | [INFO] [stdout] 5 | use sqlx::{migrate::MigrateDatabase, prelude::FromRow, types::{chrono, Json}, Sqlite, SqlitePool}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `migrate` in this scope [INFO] [stdout] --> examples/sqlite/src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | migrate(&db).await.unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `insert` found for struct `Organization` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:41:27 [INFO] [stdout] | [INFO] [stdout] 41 | let _ = Organization::insert(&org_1, &db).await.unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item not found in `Organization` [INFO] [stdout] ... [INFO] [stdout] 238 | pub struct Organization { [INFO] [stdout] | ----------------------- function or associated item `insert` 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 traits define an item `insert`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `bitflags::traits::Flags` [INFO] [stdout] candidate #2: `ppv_lite86::types::Vec2` [INFO] [stdout] candidate #3: `ppv_lite86::types::Vec4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `find_all` found for struct `Organization` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:44:30 [INFO] [stdout] | [INFO] [stdout] 44 | let orgs = Organization::find_all(&db).await.unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `Organization` [INFO] [stdout] ... [INFO] [stdout] 238 | pub struct Organization { [INFO] [stdout] | ----------------------- function or associated item `find_all` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `insert` found for struct `User` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:63:11 [INFO] [stdout] | [INFO] [stdout] 63 | User::insert(&user_1, &db).await.unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item not found in `User` [INFO] [stdout] ... [INFO] [stdout] 197 | pub struct User { [INFO] [stdout] | --------------- function or associated item `insert` 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 traits define an item `insert`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `bitflags::traits::Flags` [INFO] [stdout] candidate #2: `ppv_lite86::types::Vec2` [INFO] [stdout] candidate #3: `ppv_lite86::types::Vec4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `insert` found for struct `User` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:64:11 [INFO] [stdout] | [INFO] [stdout] 64 | User::insert(&user_2, &db).await.unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item not found in `User` [INFO] [stdout] ... [INFO] [stdout] 197 | pub struct User { [INFO] [stdout] | --------------- function or associated item `insert` 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 traits define an item `insert`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `bitflags::traits::Flags` [INFO] [stdout] candidate #2: `ppv_lite86::types::Vec2` [INFO] [stdout] candidate #3: `ppv_lite86::types::Vec4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `insert_new_user` in this scope [INFO] [stdout] --> examples/sqlite/src/main.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | insert_new_user("user3@abc.com", "password", org_1.id, &db).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `query_all_user_info` in this scope [INFO] [stdout] --> examples/sqlite/src/main.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | let users = query_all_user_info("user", 0, &db).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: custom attribute panicked [INFO] [stdout] --> examples/sqlite/src/main.rs:272:1 [INFO] [stdout] | [INFO] [stdout] 272 | / #[select(" [INFO] [stdout] 273 | | SELECT organizations.id, organizations.name [INFO] [stdout] 274 | | FROM organizations [INFO] [stdout] 275 | | JOIN users ON users.org = organizations.id [INFO] [stdout] 276 | | WHERE users.email LIKE '%' || :name || '%' [INFO] [stdout] 277 | | GROUP BY organizations.id [INFO] [stdout] 278 | | ")] [INFO] [stdout] | |___^ [INFO] [stdout] | [INFO] [stdout] = help: message: called `Result::unwrap()` on an `Err` value: BadSourceCode("error: 'rustfmt' is not installed for the custom toolchain 'cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c'.\nnote: this is a custom toolchain, which cannot use `rustup component add`\nhelp: if you built this toolchain from source, and used `rustup toolchain link`, then you may be able to build the component with `x.py`\n") [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `stream_order_by_id_desc` found for struct `User` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:74:27 [INFO] [stdout] | [INFO] [stdout] 74 | let mut users = User::stream_order_by_id_desc(&db); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `User` [INFO] [stdout] ... [INFO] [stdout] 197 | pub struct User { [INFO] [stdout] | --------------- function or associated item `stream_order_by_id_desc` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `query_user_org` in this scope [INFO] [stdout] --> examples/sqlite/src/main.rs:80:24 [INFO] [stdout] | [INFO] [stdout] 80 | let mut org_list = query_user_org("user", 0, &db); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `find_page_by_org_order_by_id_desc_and_org_desc` found for struct `User` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:88:22 [INFO] [stdout] | [INFO] [stdout] 88 | let page = User::find_page_by_org_order_by_id_desc_and_org_desc(&Some(org_1.id), page_request, &db) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `User` [INFO] [stdout] ... [INFO] [stdout] 197 | pub struct User { [INFO] [stdout] | --------------- function or associated item `find_page_by_org_order_by_id_desc_and_org_desc` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `insert` found for struct `Organization` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:104:27 [INFO] [stdout] | [INFO] [stdout] 104 | let _ = Organization::insert(&org_2, &mut *tx).await.unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item not found in `Organization` [INFO] [stdout] ... [INFO] [stdout] 238 | pub struct Organization { [INFO] [stdout] | ----------------------- function or associated item `insert` 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 traits define an item `insert`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `bitflags::traits::Flags` [INFO] [stdout] candidate #2: `ppv_lite86::types::Vec2` [INFO] [stdout] candidate #3: `ppv_lite86::types::Vec4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `find_one_by_code` found for struct `Organization` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:105:29 [INFO] [stdout] | [INFO] [stdout] 105 | let org = Organization::find_one_by_code(&"org_2".to_string(), &mut *tx).await.unwrap().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ function or associated item not found in `Organization` [INFO] [stdout] ... [INFO] [stdout] 238 | pub struct Organization { [INFO] [stdout] | ----------------------- function or associated item `find_one_by_code` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `query` and `update` [INFO] [stdout] --> examples/sqlite/src/main.rs:4:42 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx_template::{insert, multi_query, query, select, update, Columns, DeleteTemplate, SelectTemplate, TableName, UpdateTemplate}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Json` [INFO] [stdout] --> examples/sqlite/src/main.rs:5:72 [INFO] [stdout] | [INFO] [stdout] 5 | use sqlx::{migrate::MigrateDatabase, prelude::FromRow, types::{chrono, Json}, Sqlite, SqlitePool}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `find_one_by_email` found for struct `User` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:106:26 [INFO] [stdout] | [INFO] [stdout] 106 | let mut user = User::find_one_by_email(&"user2@abc.com".to_string(), &mut *tx).await.unwrap().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ function or associated item not found in `User` [INFO] [stdout] ... [INFO] [stdout] 197 | pub struct User { [INFO] [stdout] | --------------- function or associated item `find_one_by_email` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `update_user` found for struct `User` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:110:11 [INFO] [stdout] | [INFO] [stdout] 110 | User::update_user(&user.id, &user, &mut *tx).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `User` [INFO] [stdout] ... [INFO] [stdout] 197 | pub struct User { [INFO] [stdout] | --------------- function or associated item `update_user` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `find_one_by_email` found for struct `User` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:113:22 [INFO] [stdout] | [INFO] [stdout] 113 | let user = User::find_one_by_email(&"user2@abc.com".to_string(), &db).await.unwrap().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ function or associated item not found in `User` [INFO] [stdout] ... [INFO] [stdout] 197 | pub struct User { [INFO] [stdout] | --------------- function or associated item `find_one_by_email` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `insert_all` found for struct `User` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:132:30 [INFO] [stdout] | [INFO] [stdout] 132 | let row_effected = User::insert_all(users, &db).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `User` [INFO] [stdout] ... [INFO] [stdout] 197 | pub struct User { [INFO] [stdout] | --------------- function or associated item `insert_all` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `migrate` in this scope [INFO] [stdout] --> examples/sqlite/src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | migrate(&db).await.unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `insert` found for struct `Organization` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:41:27 [INFO] [stdout] | [INFO] [stdout] 41 | let _ = Organization::insert(&org_1, &db).await.unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item not found in `Organization` [INFO] [stdout] ... [INFO] [stdout] 238 | pub struct Organization { [INFO] [stdout] | ----------------------- function or associated item `insert` 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 traits define an item `insert`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `bitflags::traits::Flags` [INFO] [stdout] candidate #2: `ppv_lite86::types::Vec2` [INFO] [stdout] candidate #3: `ppv_lite86::types::Vec4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `find_all` found for struct `Organization` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:44:30 [INFO] [stdout] | [INFO] [stdout] 44 | let orgs = Organization::find_all(&db).await.unwrap(); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `Organization` [INFO] [stdout] ... [INFO] [stdout] 238 | pub struct Organization { [INFO] [stdout] | ----------------------- function or associated item `find_all` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sqlite` (bin "sqlite") due to 30 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no function or associated item named `insert` found for struct `User` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:63:11 [INFO] [stdout] | [INFO] [stdout] 63 | User::insert(&user_1, &db).await.unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item not found in `User` [INFO] [stdout] ... [INFO] [stdout] 197 | pub struct User { [INFO] [stdout] | --------------- function or associated item `insert` 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 traits define an item `insert`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `bitflags::traits::Flags` [INFO] [stdout] candidate #2: `ppv_lite86::types::Vec2` [INFO] [stdout] candidate #3: `ppv_lite86::types::Vec4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `insert` found for struct `User` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:64:11 [INFO] [stdout] | [INFO] [stdout] 64 | User::insert(&user_2, &db).await.unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item not found in `User` [INFO] [stdout] ... [INFO] [stdout] 197 | pub struct User { [INFO] [stdout] | --------------- function or associated item `insert` 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 traits define an item `insert`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `bitflags::traits::Flags` [INFO] [stdout] candidate #2: `ppv_lite86::types::Vec2` [INFO] [stdout] candidate #3: `ppv_lite86::types::Vec4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `insert_new_user` in this scope [INFO] [stdout] --> examples/sqlite/src/main.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | insert_new_user("user3@abc.com", "password", org_1.id, &db).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `query_all_user_info` in this scope [INFO] [stdout] --> examples/sqlite/src/main.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | let users = query_all_user_info("user", 0, &db).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `stream_order_by_id_desc` found for struct `User` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:74:27 [INFO] [stdout] | [INFO] [stdout] 74 | let mut users = User::stream_order_by_id_desc(&db); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `User` [INFO] [stdout] ... [INFO] [stdout] 197 | pub struct User { [INFO] [stdout] | --------------- function or associated item `stream_order_by_id_desc` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `query_user_org` in this scope [INFO] [stdout] --> examples/sqlite/src/main.rs:80:24 [INFO] [stdout] | [INFO] [stdout] 80 | let mut org_list = query_user_org("user", 0, &db); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `find_page_by_org_order_by_id_desc_and_org_desc` found for struct `User` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:88:22 [INFO] [stdout] | [INFO] [stdout] 88 | let page = User::find_page_by_org_order_by_id_desc_and_org_desc(&Some(org_1.id), page_request, &db) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `User` [INFO] [stdout] ... [INFO] [stdout] 197 | pub struct User { [INFO] [stdout] | --------------- function or associated item `find_page_by_org_order_by_id_desc_and_org_desc` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `insert` found for struct `Organization` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:104:27 [INFO] [stdout] | [INFO] [stdout] 104 | let _ = Organization::insert(&org_2, &mut *tx).await.unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item not found in `Organization` [INFO] [stdout] ... [INFO] [stdout] 238 | pub struct Organization { [INFO] [stdout] | ----------------------- function or associated item `insert` 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 traits define an item `insert`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `bitflags::traits::Flags` [INFO] [stdout] candidate #2: `ppv_lite86::types::Vec2` [INFO] [stdout] candidate #3: `ppv_lite86::types::Vec4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `find_one_by_code` found for struct `Organization` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:105:29 [INFO] [stdout] | [INFO] [stdout] 105 | let org = Organization::find_one_by_code(&"org_2".to_string(), &mut *tx).await.unwrap().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ function or associated item not found in `Organization` [INFO] [stdout] ... [INFO] [stdout] 238 | pub struct Organization { [INFO] [stdout] | ----------------------- function or associated item `find_one_by_code` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `find_one_by_email` found for struct `User` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:106:26 [INFO] [stdout] | [INFO] [stdout] 106 | let mut user = User::find_one_by_email(&"user2@abc.com".to_string(), &mut *tx).await.unwrap().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ function or associated item not found in `User` [INFO] [stdout] ... [INFO] [stdout] 197 | pub struct User { [INFO] [stdout] | --------------- function or associated item `find_one_by_email` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `update_user` found for struct `User` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:110:11 [INFO] [stdout] | [INFO] [stdout] 110 | User::update_user(&user.id, &user, &mut *tx).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `User` [INFO] [stdout] ... [INFO] [stdout] 197 | pub struct User { [INFO] [stdout] | --------------- function or associated item `update_user` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `find_one_by_email` found for struct `User` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:113:22 [INFO] [stdout] | [INFO] [stdout] 113 | let user = User::find_one_by_email(&"user2@abc.com".to_string(), &db).await.unwrap().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ function or associated item not found in `User` [INFO] [stdout] ... [INFO] [stdout] 197 | pub struct User { [INFO] [stdout] | --------------- function or associated item `find_one_by_email` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `insert_all` found for struct `User` in the current scope [INFO] [stdout] --> examples/sqlite/src/main.rs:132:30 [INFO] [stdout] | [INFO] [stdout] 132 | let row_effected = User::insert_all(users, &db).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `User` [INFO] [stdout] ... [INFO] [stdout] 197 | pub struct User { [INFO] [stdout] | --------------- function or associated item `insert_all` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sqlite` (bin "sqlite" test) due to 30 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "29ee3d3056db81d21ddcb0b4b43eac52f808cc9e3ec1449116b639200ef5cd06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29ee3d3056db81d21ddcb0b4b43eac52f808cc9e3ec1449116b639200ef5cd06", kill_on_drop: false }` [INFO] [stdout] 29ee3d3056db81d21ddcb0b4b43eac52f808cc9e3ec1449116b639200ef5cd06