[INFO] cloning repository https://github.com/ianmuriuki/personal_vault [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ianmuriuki/personal_vault" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fianmuriuki%2Fpersonal_vault", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fianmuriuki%2Fpersonal_vault'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 45d127b777b34b0ae1e865280e5d96d967f79d1a [INFO] testing ianmuriuki/personal_vault against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fianmuriuki%2Fpersonal_vault" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ianmuriuki/personal_vault [INFO] finished tweaking git repo https://github.com/ianmuriuki/personal_vault [INFO] tweaked toml for git repo https://github.com/ianmuriuki/personal_vault written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ianmuriuki/personal_vault on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ianmuriuki/personal_vault 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 69581915fe36c221072eab2c12d82bd05b4b1b5958ee952bba5f578931a980cc [INFO] running `Command { std: "docker" "start" "-a" "69581915fe36c221072eab2c12d82bd05b4b1b5958ee952bba5f578931a980cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "69581915fe36c221072eab2c12d82bd05b4b1b5958ee952bba5f578931a980cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69581915fe36c221072eab2c12d82bd05b4b1b5958ee952bba5f578931a980cc", kill_on_drop: false }` [INFO] [stdout] 69581915fe36c221072eab2c12d82bd05b4b1b5958ee952bba5f578931a980cc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9506ebdb650f08d0939b53ce48e16e850657a4b82827c3af0f425a4134483133 [INFO] running `Command { std: "docker" "start" "-a" "9506ebdb650f08d0939b53ce48e16e850657a4b82827c3af0f425a4134483133", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling hashbrown v0.14.1 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling winnow v0.5.16 [INFO] [stderr] Compiling toml_datetime v0.6.3 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling cc v1.1.31 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling thiserror v1.0.49 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling cpufeatures v0.2.9 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling candid v0.9.11 [INFO] [stderr] Compiling termcolor v1.3.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling data-encoding v2.4.0 [INFO] [stderr] Compiling serde_json v1.0.109 [INFO] [stderr] Compiling ic0 v0.21.1 [INFO] [stderr] Compiling ic-stable-structures v0.5.6 [INFO] [stderr] Compiling pretty v0.12.3 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling indexmap v2.0.2 [INFO] [stderr] Compiling psm v0.1.23 [INFO] [stderr] Compiling stacker v0.1.17 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling thiserror-impl v1.0.49 [INFO] [stderr] Compiling candid_derive v0.6.4 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling num_enum_derive v0.6.1 [INFO] [stderr] Compiling num_enum v0.6.1 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling serde_bytes v0.11.12 [INFO] [stderr] Compiling serde_tokenstream v0.1.7 [INFO] [stderr] Compiling ic-cdk-macros v0.8.1 [INFO] [stderr] Compiling ic-cdk v0.11.6 [INFO] [stderr] Compiling personal_vault_backend v0.1.0 (/opt/rustwide/workdir/src/personal_vault_backend) [INFO] [stdout] error[E0433]: failed to resolve: could not find `export` in `ic_cdk` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use ic_cdk::export::candid::{CandidType, Encode, Decode}; [INFO] [stdout] | ^^^^^^ could not find `export` in `ic_cdk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `chrono` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `chrono` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `chrono`, use `cargo add chrono` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bcrypt` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use bcrypt::{hash, verify}; // Secure password hashing [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `bcrypt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `bcrypt`, use `cargo add bcrypt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `jsonwebtoken` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use jsonwebtoken::{encode, decode, Header, Algorithm, Validation}; // JWT [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `jsonwebtoken` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jsonwebtoken`, use `cargo add jsonwebtoken` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `aes` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use aes::block_modes::{BlockMode, Cbc}; // Block mode for AES [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `aes` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `aes`, use `cargo add aes` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `aes` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use aes::cipher::{KeyIvInit, block_padding::Pkcs7}; // Key/IV initialization and PKCS7 padding [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `aes` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `aes`, use `cargo add aes` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `aes` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use aes::{Aes128, BlockEncrypt, BlockDecrypt}; // AES for encryption [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `aes` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `aes`, use `cargo add aes` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get` in module `storage` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:110:30 [INFO] [stdout] | [INFO] [stdout] 110 | let users = storage::get::>().clone(); [INFO] [stdout] | ^^^ not found in `storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `set` in module `storage` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:120:18 [INFO] [stdout] | [INFO] [stdout] 120 | storage::set(user_data.users); [INFO] [stdout] | ^^^ not found in `storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_mut` in module `storage` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:127:30 [INFO] [stdout] | [INFO] [stdout] 127 | let mut users = storage::get_mut::>(); [INFO] [stdout] | ^^^^^^^ not found in `storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get` in module `storage` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:147:26 [INFO] [stdout] | [INFO] [stdout] 147 | let users = storage::get::>(); [INFO] [stdout] | ^^^ not found in `storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_mut` in module `storage` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:171:30 [INFO] [stdout] | [INFO] [stdout] 171 | let mut users = storage::get_mut::>(); [INFO] [stdout] | ^^^^^^^ not found in `storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get` in module `storage` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:191:26 [INFO] [stdout] | [INFO] [stdout] 191 | let users = storage::get::>(); [INFO] [stdout] | ^^^ not found in `storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_mut` in module `storage` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:226:30 [INFO] [stdout] | [INFO] [stdout] 226 | let mut users = storage::get_mut::>(); [INFO] [stdout] | ^^^^^^^ not found in `storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `MemoryManager` in the current scope [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:31:70 [INFO] [stdout] | [INFO] [stdout] 31 | static MEMORY: MemoryManager = MemoryManager::new(); [INFO] [stdout] | ^^^ function or associated item not found in `MemoryManager<_>` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `MemoryManager<_>` consider using one of the following associated functions: [INFO] [stdout] MemoryManager::::init [INFO] [stdout] MemoryManager::::init_with_bucket_size [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ic-stable-structures-0.5.6/src/memory_manager.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn init(memory: M) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn init_with_bucket_size(memory: M, bucket_size_in_pages: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `save` found for reference `&MemoryManager>>>` in the current scope [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:111:16 [INFO] [stdout] | [INFO] [stdout] 111 | memory.save(MemoryId::new(1), &UserData { users }).expect("Failed to save UserData"); [INFO] [stdout] | ^^^^ method not found in `&MemoryManager>>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `load` found for reference `&MemoryManager>>>` in the current scope [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:119:42 [INFO] [stdout] | [INFO] [stdout] 119 | let user_data: UserData = memory.load(MemoryId::new(1)).expect("Failed to load UserData"); [INFO] [stdout] | ^^^^ method not found in `&MemoryManager>>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `CreateUserRequest: Deserialize<'_>` is not satisfied [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:125:1 [INFO] [stdout] | [INFO] [stdout] 125 | #[update] [INFO] [stdout] | ^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Deserialize<'_>` is not implemented for `CreateUserRequest` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | struct CreateUserRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a serde_bytes::bytes::Bytes [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] and 196 others [INFO] [stdout] = note: required for `(CreateUserRequest,)` to implement `for<'a> ArgumentDecoder<'a>` [INFO] [stdout] note: required by a bound in `arg_data` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ic-cdk-0.11.6/src/api/call.rs:551:20 [INFO] [stdout] | [INFO] [stdout] 551 | pub fn arg_data ArgumentDecoder<'a>>() -> R { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `arg_data` [INFO] [stdout] = note: this error originates in the attribute macro `update` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `CreateUserRequest: CandidType` is not satisfied [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:125:1 [INFO] [stdout] | [INFO] [stdout] 125 | #[update] [INFO] [stdout] | ^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `CandidType` is not implemented for `CreateUserRequest` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | struct CreateUserRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `CandidType`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 106 others [INFO] [stdout] = note: required for `(CreateUserRequest,)` to implement `for<'a> ArgumentDecoder<'a>` [INFO] [stdout] note: required by a bound in `arg_data` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ic-cdk-0.11.6/src/api/call.rs:551:20 [INFO] [stdout] | [INFO] [stdout] 551 | pub fn arg_data ArgumentDecoder<'a>>() -> R { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `arg_data` [INFO] [stdout] = note: this error originates in the attribute macro `update` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `LoginRequest: Deserialize<'_>` is not satisfied [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:145:1 [INFO] [stdout] | [INFO] [stdout] 145 | #[update] [INFO] [stdout] | ^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Deserialize<'_>` is not implemented for `LoginRequest` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | struct LoginRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a serde_bytes::bytes::Bytes [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] and 196 others [INFO] [stdout] = note: required for `(LoginRequest,)` to implement `for<'a> ArgumentDecoder<'a>` [INFO] [stdout] note: required by a bound in `arg_data` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ic-cdk-0.11.6/src/api/call.rs:551:20 [INFO] [stdout] | [INFO] [stdout] 551 | pub fn arg_data ArgumentDecoder<'a>>() -> R { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `arg_data` [INFO] [stdout] = note: this error originates in the attribute macro `update` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `LoginRequest: CandidType` is not satisfied [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:145:1 [INFO] [stdout] | [INFO] [stdout] 145 | #[update] [INFO] [stdout] | ^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `CandidType` is not implemented for `LoginRequest` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | struct LoginRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `CandidType`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 106 others [INFO] [stdout] = note: required for `(LoginRequest,)` to implement `for<'a> ArgumentDecoder<'a>` [INFO] [stdout] note: required by a bound in `arg_data` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ic-cdk-0.11.6/src/api/call.rs:551:20 [INFO] [stdout] | [INFO] [stdout] 551 | pub fn arg_data ArgumentDecoder<'a>>() -> R { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `arg_data` [INFO] [stdout] = note: this error originates in the attribute macro `update` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `LoginResponse: CandidType` is not satisfied [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:145:1 [INFO] [stdout] | [INFO] [stdout] 145 | #[update] [INFO] [stdout] | ^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `CandidType` is not implemented for `LoginResponse` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:69:1 [INFO] [stdout] | [INFO] [stdout] 69 | struct LoginResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `CandidType`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 106 others [INFO] [stdout] = note: required for `(LoginResponse,)` to implement `ArgumentEncoder` [INFO] [stdout] note: required by a bound in `reply` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ic-cdk-0.11.6/src/api/call.rs:450:17 [INFO] [stdout] | [INFO] [stdout] 450 | pub fn reply(reply: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ required by this bound in `reply` [INFO] [stdout] = note: this error originates in the attribute macro `update` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DataRequest: Deserialize<'_>` is not satisfied [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:188:1 [INFO] [stdout] | [INFO] [stdout] 188 | #[query] [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Deserialize<'_>` is not implemented for `DataRequest` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | struct DataRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Deserialize<'de>`: [INFO] [stdout] &'a Path [INFO] [stdout] &'a [u8] [INFO] [stdout] &'a serde_bytes::bytes::Bytes [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] and 196 others [INFO] [stdout] = note: required for `(DataRequest,)` to implement `for<'a> ArgumentDecoder<'a>` [INFO] [stdout] note: required by a bound in `arg_data` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ic-cdk-0.11.6/src/api/call.rs:551:20 [INFO] [stdout] | [INFO] [stdout] 551 | pub fn arg_data ArgumentDecoder<'a>>() -> R { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `arg_data` [INFO] [stdout] = note: this error originates in the attribute macro `query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DataRequest: CandidType` is not satisfied [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:188:1 [INFO] [stdout] | [INFO] [stdout] 188 | #[query] [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `CandidType` is not implemented for `DataRequest` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | struct DataRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `CandidType`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 106 others [INFO] [stdout] = note: required for `(DataRequest,)` to implement `for<'a> ArgumentDecoder<'a>` [INFO] [stdout] note: required by a bound in `arg_data` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ic-cdk-0.11.6/src/api/call.rs:551:20 [INFO] [stdout] | [INFO] [stdout] 551 | pub fn arg_data ArgumentDecoder<'a>>() -> R { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `arg_data` [INFO] [stdout] = note: this error originates in the attribute macro `query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DataResponse: CandidType` is not satisfied [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:188:1 [INFO] [stdout] | [INFO] [stdout] 188 | #[query] [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `CandidType` is not implemented for `DataResponse` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | struct DataResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `CandidType`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 106 others [INFO] [stdout] = note: required for `(DataResponse,)` to implement `ArgumentEncoder` [INFO] [stdout] note: required by a bound in `reply` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ic-cdk-0.11.6/src/api/call.rs:450:17 [INFO] [stdout] | [INFO] [stdout] 450 | pub fn reply(reply: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ required by this bound in `reply` [INFO] [stdout] = note: this error originates in the attribute macro `query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `bcrypt` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:254:20 [INFO] [stdout] | [INFO] [stdout] 254 | hash(password, bcrypt::DEFAULT_COST) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `bcrypt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `bcrypt`, use `cargo add bcrypt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `base64` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:269:5 [INFO] [stdout] | [INFO] [stdout] 269 | base64::encode(&ciphertext) // Return as base64 [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `base64` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `base64`, use `cargo add base64` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `base64` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:278:46 [INFO] [stdout] | [INFO] [stdout] 278 | let decrypted_data = cipher.decrypt_vec(&base64::decode(data).unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `base64` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `base64`, use `cargo add base64` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `bcrypt` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:253:52 [INFO] [stdout] | [INFO] [stdout] 253 | fn hash_password(password: &str) -> Result { [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `bcrypt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `bcrypt`, use `cargo add bcrypt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `bcrypt` [INFO] [stdout] --> src/personal_vault_backend/src/lib.rs:258:64 [INFO] [stdout] | [INFO] [stdout] 258 | fn verify_password(password: &str, hash: &str) -> Result { [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `bcrypt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `bcrypt`, use `cargo add bcrypt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `personal_vault_backend` (lib) due to 30 previous errors [INFO] running `Command { std: "docker" "inspect" "9506ebdb650f08d0939b53ce48e16e850657a4b82827c3af0f425a4134483133", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9506ebdb650f08d0939b53ce48e16e850657a4b82827c3af0f425a4134483133", kill_on_drop: false }` [INFO] [stdout] 9506ebdb650f08d0939b53ce48e16e850657a4b82827c3af0f425a4134483133