[INFO] fetching crate alipay-rs 0.4.6... [INFO] testing alipay-rs-0.4.6 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate alipay-rs 0.4.6 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate alipay-rs 0.4.6 [INFO] finished tweaking crates.io crate alipay-rs 0.4.6 [INFO] tweaked toml for crates.io crate alipay-rs 0.4.6 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate alipay-rs 0.4.6 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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--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] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 216 packages to latest compatible versions [INFO] [stderr] Adding ureq v2.12.1 (available: v3.1.0) [INFO] [stderr] Adding wasi v0.10.0+wasi-snapshot-preview1 (available: v0.10.2+wasi-snapshot-preview1) [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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded alipay_params v0.1.2 [INFO] [stderr] Downloaded alipay_macros v0.1.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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9addebd5e2e3feaeac7831c357fc4dc99fd9eb19bccb8dde7c63ab009c59a5e7 [INFO] running `Command { std: "docker" "start" "-a" "9addebd5e2e3feaeac7831c357fc4dc99fd9eb19bccb8dde7c63ab009c59a5e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9addebd5e2e3feaeac7831c357fc4dc99fd9eb19bccb8dde7c63ab009c59a5e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9addebd5e2e3feaeac7831c357fc4dc99fd9eb19bccb8dde7c63ab009c59a5e7", kill_on_drop: false }` [INFO] [stdout] 9addebd5e2e3feaeac7831c357fc4dc99fd9eb19bccb8dde7c63ab009c59a5e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0ef2082a468678520ed678c43ff2e5213b1a4466304bf800dba39df8e0b17146 [INFO] running `Command { std: "docker" "start" "-a" "0ef2082a468678520ed678c43ff2e5213b1a4466304bf800dba39df8e0b17146", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling traitobject v0.1.1 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling mime v0.2.6 [INFO] [stderr] Compiling unsafe-any v0.4.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling typemap v0.3.3 [INFO] [stderr] Compiling typeable v0.1.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Compiling phf v0.7.24 [INFO] [stderr] Compiling bitflags v2.9.3 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling openssl-src v300.5.2+3.5.2 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling plugin v0.2.6 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling rustls v0.23.31 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling modifier v0.1.0 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling webpki-roots v1.0.2 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling ascii v0.8.7 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Compiling chunked_transfer v0.3.1 [INFO] [stderr] Compiling groupable v0.2.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling mime_guess v1.8.8 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling buf_redux v0.8.4 [INFO] [stderr] Compiling twoway v0.1.8 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling hyper v0.10.16 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling tiny_http v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tempfile v3.21.0 [INFO] [stderr] Compiling alipay_macros v0.1.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling iron v0.6.1 [INFO] [stderr] Compiling rustls-webpki v0.103.4 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling mustache v0.9.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling nickel v0.11.0 [INFO] [stderr] Compiling alipay_params v0.1.2 [INFO] [stderr] Compiling ureq v2.12.1 [INFO] [stderr] Compiling multipart v0.18.0 [INFO] [stderr] Compiling alipay-rs v0.4.6 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 02s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0, typemap v0.3.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "0ef2082a468678520ed678c43ff2e5213b1a4466304bf800dba39df8e0b17146", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ef2082a468678520ed678c43ff2e5213b1a4466304bf800dba39df8e0b17146", kill_on_drop: false }` [INFO] [stdout] 0ef2082a468678520ed678c43ff2e5213b1a4466304bf800dba39df8e0b17146 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4504873f7109dc5a3c8fa2d3aa9788d2bef2b71f643905dd43daa5b4d4af4289 [INFO] running `Command { std: "docker" "start" "-a" "4504873f7109dc5a3c8fa2d3aa9788d2bef2b71f643905dd43daa5b4d4af4289", kill_on_drop: false }` [INFO] [stderr] Compiling alipay-rs v0.4.6 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.18s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0, typemap v0.3.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "4504873f7109dc5a3c8fa2d3aa9788d2bef2b71f643905dd43daa5b4d4af4289", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4504873f7109dc5a3c8fa2d3aa9788d2bef2b71f643905dd43daa5b4d4af4289", kill_on_drop: false }` [INFO] [stdout] 4504873f7109dc5a3c8fa2d3aa9788d2bef2b71f643905dd43daa5b4d4af4289 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e76f18481c238747bb8685f8a30e60b3b8e50631cedd98d47998f1eddef0314b [INFO] running `Command { std: "docker" "start" "-a" "e76f18481c238747bb8685f8a30e60b3b8e50631cedd98d47998f1eddef0314b", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0, typemap v0.3.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/alipay_rs-75bf966c6d7b922f) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests alipay_rs [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test src/client_with_params.rs - client_with_params::ClientWithParams::set_public_params (line 43) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::post_file (line 322) ... FAILED [INFO] [stdout] test src/client_with_params.rs - client_with_params::ClientWithParams::post_file (line 242) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::builder (line 102) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::post (line 264) ... FAILED [INFO] [stdout] test src/client_with_params.rs - client_with_params::ClientWithParams::post (line 180) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::set_public_params (line 119) ... FAILED [INFO] [stdout] test src/lib.rs - (line 13) ... FAILED [INFO] [stdout] test src/lib.rs - (line 136) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/client_with_params.rs - client_with_params::ClientWithParams::set_public_params (line 43) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/client_with_params.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 11 | ...... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 11 - ...... [INFO] [stdout] 11 + ..... [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 11 - ...... [INFO] [stdout] 11 + ..=... [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/client_with_params.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 11 | ...... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 11 - ...... [INFO] [stdout] 11 + ..... [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 11 - ...... [INFO] [stdout] 11 + .....= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: expected expression, found `let` statement [INFO] [stdout] --> src/client_with_params.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 13 | let public_params = PublicParams { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: only supported directly in conditions of `if` and `while` expressions [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `AlipayParams` in this scope [INFO] [stdout] --> src/client_with_params.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(AlipayParams)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these derive macros [INFO] [stdout] | [INFO] [stdout] 2 + use alipay_params::AlipayParams; [INFO] [stdout] | [INFO] [stdout] 2 + use alipay_rs::AlipayParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/client_with_params.rs:65:25 [INFO] [stdout] | [INFO] [stdout] 24 | let public_params = HashMap::from([("image_type", "png"), ("image_name", "test")]); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client_with_params.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 26 | client.set_public_params(public_params); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::post_file (line 322) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/client.rs:333:14 [INFO] [stdout] | [INFO] [stdout] 13 | let client = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 13 - let client = ...; [INFO] [stdout] 13 + let client = ..; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 13 - let client = ...; [INFO] [stdout] 13 + let client = ..=; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/client.rs:333:14 [INFO] [stdout] | [INFO] [stdout] 13 | let client = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 13 - let client = ...; [INFO] [stdout] 13 + let client = ..; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `AlipayParams` in this scope [INFO] [stdout] --> src/client.rs:323:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(AlipayParams)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these derive macros [INFO] [stdout] | [INFO] [stdout] 2 + use alipay_params::AlipayParams; [INFO] [stdout] | [INFO] [stdout] 2 + use alipay_rs::AlipayParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client.rs:335:143 [INFO] [stdout] | [INFO] [stdout] 2 | ...e_case)] fn _doctest_main_src_client_rs_322_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 15 | ... client_with_params.post_file("alipay.offline.material.image.upload", "image_content", "test.png", file.as_ref()).await.unwrap().into_... [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0586, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0586`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client_with_params.rs - client_with_params::ClientWithParams::post_file (line 242) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/client_with_params.rs:253:14 [INFO] [stdout] | [INFO] [stdout] 13 | let client = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 13 - let client = ...; [INFO] [stdout] 13 + let client = ..; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 13 - let client = ...; [INFO] [stdout] 13 + let client = ..=; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/client_with_params.rs:253:14 [INFO] [stdout] | [INFO] [stdout] 13 | let client = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 13 - let client = ...; [INFO] [stdout] 13 + let client = ..; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `AlipayParams` in this scope [INFO] [stdout] --> src/client_with_params.rs:243:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(AlipayParams)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these derive macros [INFO] [stdout] | [INFO] [stdout] 2 + use alipay_params::AlipayParams; [INFO] [stdout] | [INFO] [stdout] 2 + use alipay_rs::AlipayParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client_with_params.rs:255:143 [INFO] [stdout] | [INFO] [stdout] 2 | ...e_case)] fn _doctest_main_src_client_with_params_rs_242_0() { [INFO] [stdout] | -------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 15 | ... client_with_params.post_file("alipay.offline.material.image.upload", "image_content", "test.png", file.as_ref()).await.unwrap().into_... [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0586, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0586`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::builder (line 102) stdout ---- [INFO] [stdout] error: couldn't read `src/../公钥.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/client.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 7 | .public_key(include_str!("../公钥.txt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../私钥.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/client.rs:107:14 [INFO] [stdout] | [INFO] [stdout] 8 | .private_key(include_str!("../私钥.txt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../appCertPublicKey_2021002199679230.crt`: No such file or directory (os error 2) [INFO] [stdout] --> src/client.rs:108:14 [INFO] [stdout] | [INFO] [stdout] 9 | .app_cert_sn(include_str!("../appCertPublicKey_2021002199679230.crt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../alipayRootCert.crt`: No such file or directory (os error 2) [INFO] [stdout] --> src/client.rs:109:22 [INFO] [stdout] | [INFO] [stdout] 10 | .alipay_root_cert_sn(include_str!("../alipayRootCert.crt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::post (line 264) stdout ---- [INFO] [stdout] error: couldn't read `src/../公钥.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/client.rs:268:9 [INFO] [stdout] | [INFO] [stdout] 7 | include_str!("../公钥.txt"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../私钥.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/client.rs:269:9 [INFO] [stdout] | [INFO] [stdout] 8 | include_str!("../私钥.txt"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../appCertPublicKey_20210xxxxxxxxxxx.crt`: No such file or directory (os error 2) [INFO] [stdout] --> src/client.rs:270:14 [INFO] [stdout] | [INFO] [stdout] 9 | Some(include_str!("../appCertPublicKey_20210xxxxxxxxxxx.crt")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../alipayRootCert.crt`: No such file or directory (os error 2) [INFO] [stdout] --> src/client.rs:271:14 [INFO] [stdout] | [INFO] [stdout] 10 | Some(include_str!("../alipayRootCert.crt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `transfer` in this scope [INFO] [stdout] --> src/client.rs:274:49 [INFO] [stdout] | [INFO] [stdout] 13 | .post("alipay.fund.trans.uni.transfer", transfer) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/client.rs:282:18 [INFO] [stdout] | [INFO] [stdout] 21 | let params = HashMap::from([("image_type", "png"), ("image_name", "test")]); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client.rs:275:10 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_264_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 14 | .await.unwrap().into_json().unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 6 arguments but 5 arguments were supplied [INFO] [stdout] --> src/client.rs:266:14 [INFO] [stdout] | [INFO] [stdout] 5 | let client = alipay_rs::Client::new( [INFO] [stdout] | ______________^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] 6 | | "20210xxxxxxxxxxx", [INFO] [stdout] 7 | | include_str!("../公钥.txt"), [INFO] [stdout] 8 | | include_str!("../私钥.txt"), [INFO] [stdout] 9 | | Some(include_str!("../appCertPublicKey_20210xxxxxxxxxxx.crt")), [INFO] [stdout] 10 | | Some(include_str!("../alipayRootCert.crt")) [INFO] [stdout] 11 | | ); [INFO] [stdout] | |_____- argument #6 of type `bool` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new>( [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 5 ~ let client = alipay_rs::Client::new( [INFO] [stdout] 6 + "20210xxxxxxxxxxx", [INFO] [stdout] 7 ~ include_str!("../公钥.txt"), [INFO] [stdout] 8 ~ include_str!("../私钥.txt"), [INFO] [stdout] 9 + Some(include_str!("../appCertPublicKey_20210xxxxxxxxxxx.crt")), [INFO] [stdout] 10 + Some(include_str!("../alipayRootCert.crt")), [INFO] [stdout] 11 + /* bool */, [INFO] [stdout] 12 ~ ); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `post` found for struct `Client` in the current scope [INFO] [stdout] --> src/client.rs:274:10 [INFO] [stdout] | [INFO] [stdout] 12 | let data:serde_json::Value = client [INFO] [stdout] | __________________________________- [INFO] [stdout] 13 | | .post("alipay.fund.trans.uni.transfer", transfer) [INFO] [stdout] | | -^^^^ method not found in `Client` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:245:8 [INFO] [stdout] | [INFO] [stdout] 245 | fn post<'a, S, T>(&'a self, method: S, biz_content: T) -> BoxFuture<'a, AlipayResult> [INFO] [stdout] | ---- the method is available for `Client` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Cli` which provides `post` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::alipay_rs::Cli; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0433, E0599, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client_with_params.rs - client_with_params::ClientWithParams::post (line 180) stdout ---- [INFO] [stdout] error: couldn't read `src/../公钥.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/client_with_params.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 7 | include_str!("../公钥.txt"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../私钥.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/client_with_params.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 8 | include_str!("../私钥.txt"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../appCertPublicKey_20210xxxxxxxxxxx.crt`: No such file or directory (os error 2) [INFO] [stdout] --> src/client_with_params.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 9 | Some(include_str!("../appCertPublicKey_20210xxxxxxxxxxx.crt")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../alipayRootCert.crt`: No such file or directory (os error 2) [INFO] [stdout] --> src/client_with_params.rs:187:14 [INFO] [stdout] | [INFO] [stdout] 10 | Some(include_str!("../alipayRootCert.crt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `transfer` in this scope [INFO] [stdout] --> src/client_with_params.rs:190:49 [INFO] [stdout] | [INFO] [stdout] 13 | .post("alipay.fund.trans.uni.transfer", transfer) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/client_with_params.rs:198:18 [INFO] [stdout] | [INFO] [stdout] 21 | let params = HashMap::from([("image_type", "png"), ("image_name", "test")]); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client_with_params.rs:191:10 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_with_params_rs_180_0() { [INFO] [stdout] | -------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 14 | .await.unwrap().into_json().unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 6 arguments but 5 arguments were supplied [INFO] [stdout] --> src/client_with_params.rs:182:14 [INFO] [stdout] | [INFO] [stdout] 5 | let client = alipay_rs::Client::new( [INFO] [stdout] | ______________^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] 6 | | "20210xxxxxxxxxxx", [INFO] [stdout] 7 | | include_str!("../公钥.txt"), [INFO] [stdout] 8 | | include_str!("../私钥.txt"), [INFO] [stdout] 9 | | Some(include_str!("../appCertPublicKey_20210xxxxxxxxxxx.crt")), [INFO] [stdout] 10 | | Some(include_str!("../alipayRootCert.crt")) [INFO] [stdout] 11 | | ); [INFO] [stdout] | |_____- argument #6 of type `bool` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new>( [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 5 ~ let client = alipay_rs::Client::new( [INFO] [stdout] 6 + "20210xxxxxxxxxxx", [INFO] [stdout] 7 ~ include_str!("../公钥.txt"), [INFO] [stdout] 8 ~ include_str!("../私钥.txt"), [INFO] [stdout] 9 + Some(include_str!("../appCertPublicKey_20210xxxxxxxxxxx.crt")), [INFO] [stdout] 10 + Some(include_str!("../alipayRootCert.crt")), [INFO] [stdout] 11 + /* bool */, [INFO] [stdout] 12 ~ ); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `post` found for struct `Client` in the current scope [INFO] [stdout] --> src/client_with_params.rs:190:10 [INFO] [stdout] | [INFO] [stdout] 12 | let data:serde_json::Value = client [INFO] [stdout] | __________________________________- [INFO] [stdout] 13 | | .post("alipay.fund.trans.uni.transfer", transfer) [INFO] [stdout] | | -^^^^ method not found in `Client` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:245:8 [INFO] [stdout] | [INFO] [stdout] 245 | fn post<'a, S, T>(&'a self, method: S, biz_content: T) -> BoxFuture<'a, AlipayResult> [INFO] [stdout] | ---- the method is available for `Client` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Cli` which provides `post` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::alipay_rs::Cli; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0433, E0599, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::set_public_params (line 119) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/client.rs:128:1 [INFO] [stdout] | [INFO] [stdout] 11 | ...... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 11 - ...... [INFO] [stdout] 11 + ..... [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 11 - ...... [INFO] [stdout] 11 + ..=... [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/client.rs:128:4 [INFO] [stdout] | [INFO] [stdout] 11 | ...... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 11 - ...... [INFO] [stdout] 11 + ..... [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 11 - ...... [INFO] [stdout] 11 + .....= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: expected expression, found `let` statement [INFO] [stdout] --> src/client.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 13 | let public_params = PublicParams { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: only supported directly in conditions of `if` and `while` expressions [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `AlipayParams` in this scope [INFO] [stdout] --> src/client.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(AlipayParams)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these derive macros [INFO] [stdout] | [INFO] [stdout] 2 + use alipay_params::AlipayParams; [INFO] [stdout] | [INFO] [stdout] 2 + use alipay_rs::AlipayParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/client.rs:141:25 [INFO] [stdout] | [INFO] [stdout] 24 | let public_params = HashMap::from([("image_type", "png"), ("image_name", "test")]); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 26 | client.set_public_params(public_params); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 13) stdout ---- [INFO] [stdout] error: couldn't read `src/../公钥.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 42 | .public_key(include_str!("../公钥.txt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../私钥.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:54:21 [INFO] [stdout] | [INFO] [stdout] 43 | .private_key(include_str!("../私钥.txt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../appCertPublicKey_20210xxxxxxxxxxx.crt`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 44 | .app_cert_sn(include_str!("../appCertPublicKey_20210xxxxxxxxxxx.crt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../alipayRootCert.crt`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:56:29 [INFO] [stdout] | [INFO] [stdout] 45 | .alipay_root_cert_sn(include_str!("../alipayRootCert.crt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../公钥.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:91:20 [INFO] [stdout] | [INFO] [stdout] 80 | .public_key(include_str!("../公钥.txt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../私钥.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 81 | .private_key(include_str!("../私钥.txt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../appCertPublicKey_20210xxxxxxxxxxx.crt`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 82 | .app_cert_sn(include_str!("../appCertPublicKey_20210xxxxxxxxxxx.crt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../alipayRootCert.crt`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:94:29 [INFO] [stdout] | [INFO] [stdout] 83 | .alipay_root_cert_sn(include_str!("../alipayRootCert.crt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../公钥.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:118:16 [INFO] [stdout] | [INFO] [stdout] 107 | .public_key(include_str!("../公钥.txt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../私钥.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 108 | .private_key(include_str!("../私钥.txt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../appCertPublicKey_20210xxxxxxxxxxx.crt`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 109 | .app_cert_sn(include_str!("../appCertPublicKey_20210xxxxxxxxxxx.crt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../alipayRootCert.crt`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:121:25 [INFO] [stdout] | [INFO] [stdout] 110 | .alipay_root_cert_sn(include_str!("../alipayRootCert.crt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `alipay_rs::AlipayParam` [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 9 | use alipay_rs::AlipayParam; [INFO] [stdout] | ^^^^^^^^^^^----------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `AlipayParams` [INFO] [stdout] | no `AlipayParam` in the root [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `chrono` [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 8 | use chrono::Local; [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] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:129:3 [INFO] [stdout] | [INFO] [stdout] 118 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `AlipayParams` in this scope [INFO] [stdout] --> src/lib.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(AlipayParams, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these derive macros [INFO] [stdout] | [INFO] [stdout] 8 + use alipay_params::AlipayParams; [INFO] [stdout] | [INFO] [stdout] 8 + use alipay_rs::AlipayParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `AlipayParams` in this scope [INFO] [stdout] --> src/lib.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(AlipayParams, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these derive macros [INFO] [stdout] | [INFO] [stdout] 8 + use alipay_params::AlipayParams; [INFO] [stdout] | [INFO] [stdout] 8 + use alipay_rs::AlipayParams; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Config` in `alipay_rs` [INFO] [stdout] --> src/lib.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 105 | let config = alipay_rs::Config::builder() [INFO] [stdout] | ^^^^^^ could not find `Config` in `alipay_rs` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `post` found for struct `Client` in the current scope [INFO] [stdout] --> src/lib.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 47 | let data:serde_json::Value = client [INFO] [stdout] | __________________________________- [INFO] [stdout] 48 | | .post("alipay.fund.trans.uni.transfer", transfer) [INFO] [stdout] | | -^^^^ method not found in `Client` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:245:8 [INFO] [stdout] | [INFO] [stdout] 245 | fn post<'a, S, T>(&'a self, method: S, biz_content: T) -> BoxFuture<'a, AlipayResult> [INFO] [stdout] | ---- the method is available for `Client` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Cli` which provides `post` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::alipay_rs::Cli; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PublicParams: AlipayParams` is not satisfied [INFO] [stdout] --> src/lib.rs:105:59 [INFO] [stdout] | [INFO] [stdout] 94 | let mut client_with_params = client.set_public_params(public_params); [INFO] [stdout] | ----------------- ^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `AlipayParams` is not implemented for `PublicParams` [INFO] [stdout] --> src/lib.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 56 | struct PublicParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `AlipayParams`: [INFO] [stdout] &'a str [INFO] [stdout] () [INFO] [stdout] (T1, T2) [INFO] [stdout] AlipayValue [INFO] [stdout] HashMap [INFO] [stdout] Option [INFO] [stdout] Value [INFO] [stdout] Vec [INFO] [stdout] and 15 others [INFO] [stdout] note: required by a bound in `Client::set_public_params` [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn set_public_params(&self, args: T) -> ClientWithParams [INFO] [stdout] | ----------------- required by a bound in this associated function [INFO] [stdout] 146 | where [INFO] [stdout] 147 | T: AlipayParams, [INFO] [stdout] | ^^^^^^^^^^^^ required by this bound in `Client::set_public_params` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `post` found for struct `ClientWithParams` in the current scope [INFO] [stdout] --> src/lib.rs:107:10 [INFO] [stdout] | [INFO] [stdout] 95 | let data:serde_json::Value = client_with_params [INFO] [stdout] | __________________________________- [INFO] [stdout] 96 | | .post("alipay.fund.trans.uni.transfer", transfer) [INFO] [stdout] | | -^^^^ method not found in `ClientWithParams` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:279:8 [INFO] [stdout] | [INFO] [stdout] 279 | fn post<'a, S, T>( [INFO] [stdout] | ---- the method is available for `ClientWithParams` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `MutCli` which provides `post` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::alipay_rs::MutCli; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:130:1 [INFO] [stdout] | [INFO] [stdout] 119 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 22 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433, E0599, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 136) stdout ---- [INFO] [stdout] error: couldn't read `src/../公钥.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:202:20 [INFO] [stdout] | [INFO] [stdout] 68 | .public_key(include_str!("../公钥.txt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../私钥.txt`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:203:21 [INFO] [stdout] | [INFO] [stdout] 69 | .private_key(include_str!("../私钥.txt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../appCertPublicKey_20210xxxxxxxxxxx.crt`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:204:21 [INFO] [stdout] | [INFO] [stdout] 70 | .app_cert_sn(include_str!("../appCertPublicKey_20210xxxxxxxxxxx.crt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../alipayRootCert.crt`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:205:29 [INFO] [stdout] | [INFO] [stdout] 71 | .alipay_root_cert_sn(include_str!("../alipayRootCert.crt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `alipay_rs::AlipayParam` [INFO] [stdout] --> src/lib.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 4 | use alipay_rs::AlipayParam; [INFO] [stdout] | ^^^^^^^^^^^----------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `AlipayParams` [INFO] [stdout] | no `AlipayParam` in the root [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `chrono` [INFO] [stdout] --> src/lib.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::Local; [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] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:197:3 [INFO] [stdout] | [INFO] [stdout] 63 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:212:15 [INFO] [stdout] | [INFO] [stdout] 78 | let cli = Arc::new(client); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `post` found for reference `&Client` in the current scope [INFO] [stdout] --> src/lib.rs:175:10 [INFO] [stdout] | [INFO] [stdout] 40 | let data:serde_json::Value = client [INFO] [stdout] | __________________________________- [INFO] [stdout] 41 | | .post("alipay.open.mini.item.page.query", query) [INFO] [stdout] | | -^^^^ method not found in `&Client` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Cli` which provides `post` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::alipay_rs::Cli; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `post` found for reference `&Client` in the current scope [INFO] [stdout] --> src/lib.rs:193:10 [INFO] [stdout] | [INFO] [stdout] 58 | let data:serde_json::Value = client [INFO] [stdout] | __________________________________- [INFO] [stdout] 59 | | .post("alipay.fund.trans.uni.transfer", transfer) [INFO] [stdout] | | -^^^^ method not found in `&Client` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Cli` which provides `post` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use crate::alipay_rs::Cli; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 80 | tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 83 | tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:198:1 [INFO] [stdout] | [INFO] [stdout] 64 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/client.rs - client::Client::builder (line 102) [INFO] [stdout] src/client.rs - client::Client::post (line 264) [INFO] [stdout] src/client.rs - client::Client::post_file (line 322) [INFO] [stdout] src/client.rs - client::Client::set_public_params (line 119) [INFO] [stdout] src/client_with_params.rs - client_with_params::ClientWithParams::post (line 180) [INFO] [stdout] src/client_with_params.rs - client_with_params::ClientWithParams::post_file (line 242) [INFO] [stdout] src/client_with_params.rs - client_with_params::ClientWithParams::set_public_params (line 43) [INFO] [stdout] src/lib.rs - (line 13) [INFO] [stdout] src/lib.rs - (line 136) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.49s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "e76f18481c238747bb8685f8a30e60b3b8e50631cedd98d47998f1eddef0314b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e76f18481c238747bb8685f8a30e60b3b8e50631cedd98d47998f1eddef0314b", kill_on_drop: false }` [INFO] [stdout] e76f18481c238747bb8685f8a30e60b3b8e50631cedd98d47998f1eddef0314b