[INFO] cloning repository https://github.com/Bogunok/nft_Marketplace_hakathon
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Bogunok/nft_Marketplace_hakathon" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBogunok%2Fnft_Marketplace_hakathon", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBogunok%2Fnft_Marketplace_hakathon'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e44742fc64e23a6e745c34c8c01e7eefeaec3229
[INFO] checking Bogunok/nft_Marketplace_hakathon against master#292be5c7c05138d753bbd4b30db7a3f1a5c914f7 for pr-148271
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBogunok%2Fnft_Marketplace_hakathon" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Bogunok/nft_Marketplace_hakathon
[INFO] finished tweaking git repo https://github.com/Bogunok/nft_Marketplace_hakathon
[INFO] tweaked toml for git repo https://github.com/Bogunok/nft_Marketplace_hakathon written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Bogunok/nft_Marketplace_hakathon on toolchain 292be5c7c05138d753bbd4b30db7a3f1a5c914f7
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Bogunok/nft_Marketplace_hakathon 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" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded stacker v0.1.20
[INFO] [stderr]   Downloaded ic-certified-map v0.4.0
[INFO] [stderr]   Downloaded ic-cdk-macros v0.17.1
[INFO] [stderr]   Downloaded include-base64 v0.1.0
[INFO] [stderr]   Downloaded candid v0.10.13
[INFO] [stderr]   Downloaded psm v0.1.25
[INFO] [stderr]   Downloaded ic-cdk v0.17.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 9d29b0d75e9e258a2de6436e2eb39d0eefb0ffcc39fa74b98e164b534e668d75
[INFO] running `Command { std: "docker" "start" "-a" "9d29b0d75e9e258a2de6436e2eb39d0eefb0ffcc39fa74b98e164b534e668d75", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "9d29b0d75e9e258a2de6436e2eb39d0eefb0ffcc39fa74b98e164b534e668d75", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9d29b0d75e9e258a2de6436e2eb39d0eefb0ffcc39fa74b98e164b534e668d75", kill_on_drop: false }`
[INFO] [stdout] 9d29b0d75e9e258a2de6436e2eb39d0eefb0ffcc39fa74b98e164b534e668d75
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] b8a99a4b9e0a685cc405b16b165cd66e8fcbe5e3c343d959058f5db2e18bb4c0
[INFO] running `Command { std: "docker" "start" "-a" "b8a99a4b9e0a685cc405b16b165cd66e8fcbe5e3c343d959058f5db2e18bb4c0", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.94
[INFO] [stderr]    Compiling autocfg v1.4.0
[INFO] [stderr]    Compiling cc v1.2.17
[INFO] [stderr]    Compiling libc v0.2.171
[INFO] [stderr]    Compiling rustversion v1.0.20
[INFO] [stderr]    Compiling anyhow v1.0.97
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]    Compiling sha2 v0.10.8
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]    Compiling crc32fast v1.4.2
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]     Checking futures-core v0.3.31
[INFO] [stderr]    Compiling unicode-width v0.1.14
[INFO] [stderr]    Compiling data-encoding v2.8.0
[INFO] [stderr]     Checking futures-sink v0.3.31
[INFO] [stderr]    Compiling syn v2.0.100
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling typed-arena v2.0.2
[INFO] [stderr]    Compiling arrayvec v0.5.2
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]     Checking futures-channel v0.3.31
[INFO] [stderr]    Compiling psm v0.1.25
[INFO] [stderr]    Compiling stacker v0.1.20
[INFO] [stderr]    Compiling pretty v0.12.4
[INFO] [stderr]    Compiling byteorder v1.5.0
[INFO] [stderr]     Checking futures-task v0.3.31
[INFO] [stderr]    Compiling leb128 v0.2.5
[INFO] [stderr]     Checking futures-io v0.3.31
[INFO] [stderr]    Compiling slotmap v1.0.7
[INFO] [stderr]     Checking ic0 v0.23.0
[INFO] [stderr]     Checking half v1.8.3
[INFO] [stderr]    Compiling base64 v0.13.1
[INFO] [stderr]    Compiling binread_derive v2.1.0
[INFO] [stderr]    Compiling include-base64 v0.1.0
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling candid_derive v0.6.6
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]     Checking futures-util v0.3.31
[INFO] [stderr]    Compiling binread v2.2.0
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]     Checking serde v1.0.219
[INFO] [stderr]     Checking futures-executor v0.3.31
[INFO] [stderr]     Checking futures v0.3.31
[INFO] [stderr]     Checking serde_bytes v0.11.17
[INFO] [stderr]     Checking num-bigint v0.4.6
[INFO] [stderr]     Checking ic_principal v0.1.1
[INFO] [stderr]     Checking serde_cbor v0.11.2
[INFO] [stderr]     Checking ic-certified-map v0.4.0
[INFO] [stderr]    Compiling serde_tokenstream v0.2.2
[INFO] [stderr]     Checking candid v0.10.13
[INFO] [stderr]    Compiling ic-cdk-macros v0.17.1
[INFO] [stderr]     Checking ic-cdk v0.17.1
[INFO] [stderr]     Checking ic-cdk-timers v0.11.0
[INFO] [stderr]     Checking nft-Marketplace-backend v0.1.0 (/opt/rustwide/workdir/src/nft-Marketplace-backend)
[INFO] [stdout] error[E0252]: the name `Deserialize` is defined multiple times
[INFO] [stdout]   --> src/nft-Marketplace-backend/src/http.rs:12:13
[INFO] [stdout]    |
[INFO] [stdout]  7 | use candid::{CandidType, Deserialize};
[INFO] [stdout]    |                          ----------- previous import of the trait `Deserialize` here
[INFO] [stdout] ...
[INFO] [stdout] 12 | use serde::{Deserialize, Serialize};
[INFO] [stdout]    |             ^^^^^^^^^^^--
[INFO] [stdout]    |             |
[INFO] [stdout]    |             `Deserialize` reimported here
[INFO] [stdout]    |             help: remove unnecessary import
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Deserialize` must be defined only once in the type namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0252]: the name `Deserialize` is defined multiple times
[INFO] [stdout]   --> src/nft-Marketplace-backend/src/http.rs:12:13
[INFO] [stdout]    |
[INFO] [stdout]  7 | use candid::{CandidType, Deserialize};
[INFO] [stdout]    |                          ----------- previous import of the trait `Deserialize` here
[INFO] [stdout] ...
[INFO] [stdout] 12 | use serde::{Deserialize, Serialize};
[INFO] [stdout]    |             ^^^^^^^^^^^--
[INFO] [stdout]    |             |
[INFO] [stdout]    |             `Deserialize` reimported here
[INFO] [stdout]    |             help: remove unnecessary import
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Deserialize` must be defined only once in the type namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MetadataPart` in module `http`
[INFO] [stdout]   --> src/nft-Marketplace-backend/src/lib.rs:77:29
[INFO] [stdout]    |
[INFO] [stdout] 69 | pub enum MetadataVal {
[INFO] [stdout]    | -------------------- similarly named enum `MetadataVal` defined here
[INFO] [stdout] ...
[INFO] [stdout] 77 |     pub metadata: Vec<http::MetadataPart>, 
[INFO] [stdout]    |                             ^^^^^^^^^^^^ help: an enum with a similar name exists: `MetadataVal`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MetadataPart` in module `http`
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/lib.rs:272:35
[INFO] [stdout]     |
[INFO] [stdout] 272 |         let metadata_part = http::MetadataPart {
[INFO] [stdout]     |                                   ^^^^^^^^^^^^ not found in `http`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0603]: struct import `NFT` is private
[INFO] [stdout]   --> src/nft-Marketplace-backend/src/lib.rs:90:36
[INFO] [stdout]    |
[INFO] [stdout] 90 |     pub nfts: HashMap<usize, http::NFT>, // Token ID to NFT data for HTTP serving
[INFO] [stdout]    |                                    ^^^ private struct import
[INFO] [stdout]    |
[INFO] [stdout] note: the struct import `NFT` is defined here...
[INFO] [stdout]   --> src/nft-Marketplace-backend/src/http.rs:16:50
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::{MetadataPurpose, MetadataVal, STATE, NFT};
[INFO] [stdout]    |                                                  ^^^
[INFO] [stdout] note: ...and refers to the struct `NFT` which is defined here
[INFO] [stdout]   --> src/nft-Marketplace-backend/src/lib.rs:76:1
[INFO] [stdout]    |
[INFO] [stdout] 76 | pub struct NFT {
[INFO] [stdout]    | ^^^^^^^^^^^^^^ you could import this directly
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0603]: enum import `MetadataPurpose` is private
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/lib.rs:273:28
[INFO] [stdout]     |
[INFO] [stdout] 273 |             purpose: http::MetadataPurpose::Rendered,
[INFO] [stdout]     |                            ^^^^^^^^^^^^^^^ private enum import
[INFO] [stdout]     |
[INFO] [stdout] note: the enum import `MetadataPurpose` is defined here...
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/http.rs:16:13
[INFO] [stdout]     |
[INFO] [stdout]  16 | use crate::{MetadataPurpose, MetadataVal, STATE, NFT};
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^
[INFO] [stdout] note: ...and refers to the enum `MetadataPurpose` which is defined here
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/lib.rs:61:1
[INFO] [stdout]     |
[INFO] [stdout]  61 | pub enum MetadataPurpose {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly
[INFO] [stdout] help: consider importing this unit variant instead
[INFO] [stdout]     |
[INFO] [stdout] 273 -             purpose: http::MetadataPurpose::Rendered,
[INFO] [stdout] 273 +             purpose: crate::MetadataPurpose::Rendered,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0603]: enum import `MetadataVal` is private
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/lib.rs:275:81
[INFO] [stdout]     |
[INFO] [stdout] 275 |             key_val_data: HashMap::from_iter([("contentType".to_string(), http::MetadataVal::TextContent("text/plain".to_string()))]),
[INFO] [stdout]     |                                                                                 ^^^^^^^^^^^ private enum import
[INFO] [stdout]     |
[INFO] [stdout] note: the enum import `MetadataVal` is defined here...
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/http.rs:16:30
[INFO] [stdout]     |
[INFO] [stdout]  16 | use crate::{MetadataPurpose, MetadataVal, STATE, NFT};
[INFO] [stdout]     |                              ^^^^^^^^^^^
[INFO] [stdout] note: ...and refers to the enum `MetadataVal` which is defined here
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/lib.rs:69:1
[INFO] [stdout]     |
[INFO] [stdout]  69 | pub enum MetadataVal {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^ you could import this directly
[INFO] [stdout] help: consider importing this tuple variant instead
[INFO] [stdout]     |
[INFO] [stdout] 275 -             key_val_data: HashMap::from_iter([("contentType".to_string(), http::MetadataVal::TextContent("text/plain".to_string()))]),
[INFO] [stdout] 275 +             key_val_data: HashMap::from_iter([("contentType".to_string(), crate::MetadataVal::TextContent("text/plain".to_string()))]),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0603]: struct import `NFT` is private
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/lib.rs:277:54
[INFO] [stdout]     |
[INFO] [stdout] 277 |         state.nfts.insert(token_id.0 as usize, http::NFT { metadata: vec![metadata_part] });
[INFO] [stdout]     |                                                      ^^^ private struct import
[INFO] [stdout]     |
[INFO] [stdout] note: the struct import `NFT` is defined here...
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/http.rs:16:50
[INFO] [stdout]     |
[INFO] [stdout]  16 | use crate::{MetadataPurpose, MetadataVal, STATE, NFT};
[INFO] [stdout]     |                                                  ^^^
[INFO] [stdout] note: ...and refers to the struct `NFT` which is defined here
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/lib.rs:76:1
[INFO] [stdout]     |
[INFO] [stdout]  76 | pub struct NFT {
[INFO] [stdout]     | ^^^^^^^^^^^^^^ you could import this directly
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Deserialize`
[INFO] [stdout]   --> src/nft-Marketplace-backend/src/http.rs:12:13
[INFO] [stdout]    |
[INFO] [stdout] 12 | use serde::{Deserialize, Serialize};
[INFO] [stdout]    |             ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition name: `mainnet`
[INFO] [stdout]   --> src/nft-Marketplace-backend/src/http.rs:62:17
[INFO] [stdout]    |
[INFO] [stdout] 62 |         if cfg!(mainnet) {
[INFO] [stdout]    |                 ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: expected names are: `docsrs`, `feature`, and `test` and 31 more
[INFO] [stdout]    = help: consider using a Cargo feature instead
[INFO] [stdout]    = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stdout]             [lints.rust]
[INFO] [stdout]             unexpected_cfgs = { level = "warn", check-cfg = ['cfg(mainnet)'] }
[INFO] [stdout]    = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(mainnet)");` to the top of the `build.rs`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]    = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/http.rs:42:15
[INFO] [stdout]     |
[INFO] [stdout]  42 |     let req = call::arg_data::<(HttpRequest,)>().0;
[INFO] [stdout]     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-- argument #1 of type `ArgDecoderConfig` is missing
[INFO] [stdout]     |
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ic-cdk-0.17.1/src/api/call.rs:758:8
[INFO] [stdout]     |
[INFO] [stdout] 758 | pub fn arg_data<R: for<'a> ArgumentDecoder<'a>>(arg_config: ArgDecoderConfig) -> R {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] help: provide the argument
[INFO] [stdout]     |
[INFO] [stdout]  42 |     let req = call::arg_data::<(HttpRequest,)>(/* ArgDecoderConfig */).0;
[INFO] [stdout]     |                                                ++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `base64`
[INFO] [stdout]   --> src/nft-Marketplace-backend/src/http.rs:48:13
[INFO] [stdout]    |
[INFO] [stdout] 48 |             base64::encode(api::data_certificate().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[E0412]: cannot find type `MetadataPart` in module `http`
[INFO] [stdout]   --> src/nft-Marketplace-backend/src/lib.rs:77:29
[INFO] [stdout]    |
[INFO] [stdout] 69 | pub enum MetadataVal {
[INFO] [stdout]    | -------------------- similarly named enum `MetadataVal` defined here
[INFO] [stdout] ...
[INFO] [stdout] 77 |     pub metadata: Vec<http::MetadataPart>, 
[INFO] [stdout]    |                             ^^^^^^^^^^^^ help: an enum with a similar name exists: `MetadataVal`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MetadataPart` in module `http`
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/lib.rs:272:35
[INFO] [stdout]     |
[INFO] [stdout] 272 |         let metadata_part = http::MetadataPart {
[INFO] [stdout]     |                                   ^^^^^^^^^^^^ not found in `http`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0603]: struct import `NFT` is private
[INFO] [stdout]   --> src/nft-Marketplace-backend/src/lib.rs:90:36
[INFO] [stdout]    |
[INFO] [stdout] 90 |     pub nfts: HashMap<usize, http::NFT>, // Token ID to NFT data for HTTP serving
[INFO] [stdout]    |                                    ^^^ private struct import
[INFO] [stdout]    |
[INFO] [stdout] note: the struct import `NFT` is defined here...
[INFO] [stdout]   --> src/nft-Marketplace-backend/src/http.rs:16:50
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::{MetadataPurpose, MetadataVal, STATE, NFT};
[INFO] [stdout]    |                                                  ^^^
[INFO] [stdout] note: ...and refers to the struct `NFT` which is defined here
[INFO] [stdout]   --> src/nft-Marketplace-backend/src/lib.rs:76:1
[INFO] [stdout]    |
[INFO] [stdout] 76 | pub struct NFT {
[INFO] [stdout]    | ^^^^^^^^^^^^^^ you could import this directly
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0603]: enum import `MetadataPurpose` is private
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/lib.rs:273:28
[INFO] [stdout]     |
[INFO] [stdout] 273 |             purpose: http::MetadataPurpose::Rendered,
[INFO] [stdout]     |                            ^^^^^^^^^^^^^^^ private enum import
[INFO] [stdout]     |
[INFO] [stdout] note: the enum import `MetadataPurpose` is defined here...
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/http.rs:16:13
[INFO] [stdout]     |
[INFO] [stdout]  16 | use crate::{MetadataPurpose, MetadataVal, STATE, NFT};
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^
[INFO] [stdout] note: ...and refers to the enum `MetadataPurpose` which is defined here
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/lib.rs:61:1
[INFO] [stdout]     |
[INFO] [stdout]  61 | pub enum MetadataPurpose {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly
[INFO] [stdout] help: consider importing this unit variant instead
[INFO] [stdout]     |
[INFO] [stdout] 273 -             purpose: http::MetadataPurpose::Rendered,
[INFO] [stdout] 273 +             purpose: crate::MetadataPurpose::Rendered,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0603]: enum import `MetadataVal` is private
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/lib.rs:275:81
[INFO] [stdout]     |
[INFO] [stdout] 275 |             key_val_data: HashMap::from_iter([("contentType".to_string(), http::MetadataVal::TextContent("text/plain".to_string()))]),
[INFO] [stdout]     |                                                                                 ^^^^^^^^^^^ private enum import
[INFO] [stdout]     |
[INFO] [stdout] note: the enum import `MetadataVal` is defined here...
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/http.rs:16:30
[INFO] [stdout]     |
[INFO] [stdout]  16 | use crate::{MetadataPurpose, MetadataVal, STATE, NFT};
[INFO] [stdout]     |                              ^^^^^^^^^^^
[INFO] [stdout] note: ...and refers to the enum `MetadataVal` which is defined here
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/lib.rs:69:1
[INFO] [stdout]     |
[INFO] [stdout]  69 | pub enum MetadataVal {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^ you could import this directly
[INFO] [stdout] help: consider importing this tuple variant instead
[INFO] [stdout]     |
[INFO] [stdout] 275 -             key_val_data: HashMap::from_iter([("contentType".to_string(), http::MetadataVal::TextContent("text/plain".to_string()))]),
[INFO] [stdout] 275 +             key_val_data: HashMap::from_iter([("contentType".to_string(), crate::MetadataVal::TextContent("text/plain".to_string()))]),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0603]: struct import `NFT` is private
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/lib.rs:277:54
[INFO] [stdout]     |
[INFO] [stdout] 277 |         state.nfts.insert(token_id.0 as usize, http::NFT { metadata: vec![metadata_part] });
[INFO] [stdout]     |                                                      ^^^ private struct import
[INFO] [stdout]     |
[INFO] [stdout] note: the struct import `NFT` is defined here...
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/http.rs:16:50
[INFO] [stdout]     |
[INFO] [stdout]  16 | use crate::{MetadataPurpose, MetadataVal, STATE, NFT};
[INFO] [stdout]     |                                                  ^^^
[INFO] [stdout] note: ...and refers to the struct `NFT` which is defined here
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/lib.rs:76:1
[INFO] [stdout]     |
[INFO] [stdout]  76 | pub struct NFT {
[INFO] [stdout]     | ^^^^^^^^^^^^^^ you could import this directly
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Deserialize`
[INFO] [stdout]   --> src/nft-Marketplace-backend/src/http.rs:12:13
[INFO] [stdout]    |
[INFO] [stdout] 12 | use serde::{Deserialize, Serialize};
[INFO] [stdout]    |             ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition name: `mainnet`
[INFO] [stdout]   --> src/nft-Marketplace-backend/src/http.rs:62:17
[INFO] [stdout]    |
[INFO] [stdout] 62 |         if cfg!(mainnet) {
[INFO] [stdout]    |                 ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: expected names are: `docsrs`, `feature`, and `test` and 31 more
[INFO] [stdout]    = help: consider using a Cargo feature instead
[INFO] [stdout]    = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stdout]             [lints.rust]
[INFO] [stdout]             unexpected_cfgs = { level = "warn", check-cfg = ['cfg(mainnet)'] }
[INFO] [stdout]    = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(mainnet)");` to the top of the `build.rs`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]    = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `base64`
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/http.rs:166:9
[INFO] [stdout]     |
[INFO] [stdout] 166 |         base64::encode(data)
[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[E0061]: this function takes 1 argument but 0 arguments were supplied
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/http.rs:42:15
[INFO] [stdout]     |
[INFO] [stdout]  42 |     let req = call::arg_data::<(HttpRequest,)>().0;
[INFO] [stdout]     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-- argument #1 of type `ArgDecoderConfig` is missing
[INFO] [stdout]     |
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ic-cdk-0.17.1/src/api/call.rs:758:8
[INFO] [stdout]     |
[INFO] [stdout] 758 | pub fn arg_data<R: for<'a> ArgumentDecoder<'a>>(arg_config: ArgDecoderConfig) -> R {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] help: provide the argument
[INFO] [stdout]     |
[INFO] [stdout]  42 |     let req = call::arg_data::<(HttpRequest,)>(/* ArgDecoderConfig */).0;
[INFO] [stdout]     |                                                ++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `base64`
[INFO] [stdout]   --> src/nft-Marketplace-backend/src/http.rs:48:13
[INFO] [stdout]    |
[INFO] [stdout] 48 |             base64::encode(api::data_certificate().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[E0308]: mismatched types
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/lib.rs:280:24
[INFO] [stdout]     |
[INFO] [stdout] 280 |         http::add_hash(token_id.0);
[INFO] [stdout]     |         -------------- ^^^^^^^^^^ expected `u64`, found `BigUint`
[INFO] [stdout]     |         |
[INFO] [stdout]     |         arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/http.rs:131:8
[INFO] [stdout]     |
[INFO] [stdout] 131 | pub fn add_hash(tkid: u64) {
[INFO] [stdout]     |        ^^^^^^^^ ---------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0605]: non-primitive cast: `num_bigint::biguint::BigUint` as `usize`
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/lib.rs:277:27
[INFO] [stdout]     |
[INFO] [stdout] 277 |         state.nfts.insert(token_id.0 as usize, http::NFT { metadata: vec![metadata_part] });
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `base64`
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/http.rs:166:9
[INFO] [stdout]     |
[INFO] [stdout] 166 |         base64::encode(data)
[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[E0308]: mismatched types
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/lib.rs:280:24
[INFO] [stdout]     |
[INFO] [stdout] 280 |         http::add_hash(token_id.0);
[INFO] [stdout]     |         -------------- ^^^^^^^^^^ expected `u64`, found `BigUint`
[INFO] [stdout]     |         |
[INFO] [stdout]     |         arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/http.rs:131:8
[INFO] [stdout]     |
[INFO] [stdout] 131 | pub fn add_hash(tkid: u64) {
[INFO] [stdout]     |        ^^^^^^^^ ---------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0605]: non-primitive cast: `num_bigint::biguint::BigUint` as `usize`
[INFO] [stdout]    --> src/nft-Marketplace-backend/src/lib.rs:277:27
[INFO] [stdout]     |
[INFO] [stdout] 277 |         state.nfts.insert(token_id.0 as usize, http::NFT { metadata: vec![metadata_part] });
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0252, E0308, E0412, E0422, E0433, E0603, E0605.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `nft-Marketplace-backend` (lib test) due to 12 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] Some errors have detailed explanations: E0061, E0252, E0308, E0412, E0422, E0433, E0603, E0605.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `nft-Marketplace-backend` (lib) due to 12 previous errors; 2 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "b8a99a4b9e0a685cc405b16b165cd66e8fcbe5e3c343d959058f5db2e18bb4c0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b8a99a4b9e0a685cc405b16b165cd66e8fcbe5e3c343d959058f5db2e18bb4c0", kill_on_drop: false }`
[INFO] [stdout] b8a99a4b9e0a685cc405b16b165cd66e8fcbe5e3c343d959058f5db2e18bb4c0
