[INFO] fetching crate alipay-rs 0.4.6... [INFO] testing alipay-rs-0.4.6 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] extracting crate alipay-rs 0.4.6 into /workspace/builds/worker-2-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-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate alipay-rs 0.4.6 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 208 packages to latest compatible versions [INFO] [stderr] Adding ureq v2.12.1 (available: v3.1.4) [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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded plugin v0.2.6 [INFO] [stderr] Downloaded tiny_http v0.6.4 [INFO] [stderr] Downloaded modifier v0.1.0 [INFO] [stderr] Downloaded alipay_macros v0.1.1 [INFO] [stderr] Downloaded nickel v0.11.0 [INFO] [stderr] Downloaded multipart v0.18.0 [INFO] [stderr] Downloaded iron v0.6.1 [INFO] [stderr] Downloaded mustache v0.9.0 [INFO] [stderr] Downloaded webpki-roots v1.0.4 [INFO] [stderr] Downloaded groupable v0.2.0 [INFO] [stderr] Downloaded alipay_params v0.1.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9affe11bf8e53f151f4d40fdd2092677c619063aec16f05466422ebbebfbfe8e [INFO] running `Command { std: "docker" "start" "-a" "9affe11bf8e53f151f4d40fdd2092677c619063aec16f05466422ebbebfbfe8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9affe11bf8e53f151f4d40fdd2092677c619063aec16f05466422ebbebfbfe8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9affe11bf8e53f151f4d40fdd2092677c619063aec16f05466422ebbebfbfe8e", kill_on_drop: false }` [INFO] [stdout] 9affe11bf8e53f151f4d40fdd2092677c619063aec16f05466422ebbebfbfe8e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0368aeb79b567a6581e545bb93e80b7f52b9eb3c2b8571961ab934d3561a1d13 [INFO] running `Command { std: "docker" "start" "-a" "0368aeb79b567a6581e545bb93e80b7f52b9eb3c2b8571961ab934d3561a1d13", kill_on_drop: false }` [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling cc v1.2.45 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rustls-pki-types v1.13.0 [INFO] [stderr] Compiling unsafe-any v0.4.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling rustls v0.23.35 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling modifier v0.1.0 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling typemap v0.3.3 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Compiling rand_jitter v0.1.4 [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 phf v0.7.24 [INFO] [stderr] Compiling webpki-roots v1.0.4 [INFO] [stderr] Compiling chunked_transfer v0.3.1 [INFO] [stderr] Compiling ascii v0.8.7 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling groupable v0.2.0 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling openssl-src v300.5.4+3.5.4 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling buf_redux v0.8.4 [INFO] [stderr] Compiling twoway v0.1.8 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Compiling mime_guess v1.8.8 [INFO] [stderr] Compiling tiny_http v0.6.4 [INFO] [stderr] Compiling iron v0.6.1 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling alipay_macros v0.1.1 [INFO] [stderr] Compiling alipay_params v0.1.2 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling rustls-webpki v0.103.8 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling mustache v0.9.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling nickel v0.11.0 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.1 [INFO] [stderr] Compiling multipart v0.18.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [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 ureq v2.12.1 [INFO] [stderr] Compiling alipay-rs v0.4.6 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 15s [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" "0368aeb79b567a6581e545bb93e80b7f52b9eb3c2b8571961ab934d3561a1d13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0368aeb79b567a6581e545bb93e80b7f52b9eb3c2b8571961ab934d3561a1d13", kill_on_drop: false }` [INFO] [stdout] 0368aeb79b567a6581e545bb93e80b7f52b9eb3c2b8571961ab934d3561a1d13 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ee6a6207da4523720ffec12d77952d6d46c693b6575d590cd3101b849cec6fc7 [INFO] running `Command { std: "docker" "start" "-a" "ee6a6207da4523720ffec12d77952d6d46c693b6575d590cd3101b849cec6fc7", 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.22s [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" "ee6a6207da4523720ffec12d77952d6d46c693b6575d590cd3101b849cec6fc7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee6a6207da4523720ffec12d77952d6d46c693b6575d590cd3101b849cec6fc7", kill_on_drop: false }` [INFO] [stdout] ee6a6207da4523720ffec12d77952d6d46c693b6575d590cd3101b849cec6fc7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d58248e4d1f986c9faefa2f67c2cbfed36b0f269991be1e05e83cbfc0a95d6f1 [INFO] running `Command { std: "docker" "start" "-a" "d58248e4d1f986c9faefa2f67c2cbfed36b0f269991be1e05e83cbfc0a95d6f1", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s [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-bf7c98d3356b268a) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stderr] Doc-tests alipay_rs [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test src/client.rs - client::Client::set_public_params (line 119) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::builder (line 102) ... 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 (line 180) ... FAILED [INFO] [stdout] test src/client_with_params.rs - client_with_params::ClientWithParams::set_public_params (line 43) ... 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::post (line 264) ... 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.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] 128 | ...... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 128 - ...... [INFO] [stdout] 128 + ..... [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 128 - ...... [INFO] [stdout] 128 + ..=... [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/client.rs:128:4 [INFO] [stdout] | [INFO] [stdout] 128 | ...... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 128 - ...... [INFO] [stdout] 128 + ..... [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 128 - ...... [INFO] [stdout] 128 + .....= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: expected expression, found `let` statement [INFO] [stdout] --> src/client.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 130 | 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] 120 | #[derive(AlipayParams)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these derive macros [INFO] [stdout] | [INFO] [stdout] 119 + use alipay_params::AlipayParams; [INFO] [stdout] | [INFO] [stdout] 119 + 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] 141 | 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] 119 + 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] 143 | 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::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] 106 | .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] 107 | .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] 108 | .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] 109 | .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_file (line 322) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/client.rs:333:14 [INFO] [stdout] | [INFO] [stdout] 333 | let client = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 333 - let client = ...; [INFO] [stdout] 333 + let client = ..; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 333 - let client = ...; [INFO] [stdout] 333 + 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] 333 | 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] 333 - let client = ...; [INFO] [stdout] 333 + 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] 323 | #[derive(AlipayParams)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these derive macros [INFO] [stdout] | [INFO] [stdout] 322 + use alipay_params::AlipayParams; [INFO] [stdout] | [INFO] [stdout] 322 + 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] 322 | ...case)] fn _doctest_main_src_client_rs_322_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 335 | ...lient_with_params.post_file("alipay.offline.material.image.upload", "image_content", "test.png", file.as_ref()).await.unwrap().i... [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 (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] 184 | 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] 185 | 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] 186 | 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] 187 | 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] 190 | .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] 198 | 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] 179 + 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] 181 | 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] 191 | .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] 182 | let client = alipay_rs::Client::new( [INFO] [stdout] | ______________^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] 183 | | "20210xxxxxxxxxxx", [INFO] [stdout] 184 | | include_str!("../公钥.txt"), [INFO] [stdout] 185 | | include_str!("../私钥.txt"), [INFO] [stdout] 186 | | Some(include_str!("../appCertPublicKey_20210xxxxxxxxxxx.crt")), [INFO] [stdout] 187 | | Some(include_str!("../alipayRootCert.crt")) [INFO] [stdout] 188 | | ); [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] 182 ~ let client = alipay_rs::Client::new( [INFO] [stdout] 183 + "20210xxxxxxxxxxx", [INFO] [stdout] 184 ~ include_str!("../公钥.txt"), [INFO] [stdout] 185 ~ include_str!("../私钥.txt"), [INFO] [stdout] 186 + Some(include_str!("../appCertPublicKey_20210xxxxxxxxxxx.crt")), [INFO] [stdout] 187 + Some(include_str!("../alipayRootCert.crt")), [INFO] [stdout] 188 + /* bool */, [INFO] [stdout] 189 ~ ); [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] 189 | let data:serde_json::Value = client [INFO] [stdout] | __________________________________- [INFO] [stdout] 190 | | .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] 179 + 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::set_public_params (line 43) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/client_with_params.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | ...... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 52 - ...... [INFO] [stdout] 52 + ..... [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 52 - ...... [INFO] [stdout] 52 + ..=... [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/client_with_params.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | ...... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 52 - ...... [INFO] [stdout] 52 + ..... [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 52 - ...... [INFO] [stdout] 52 + .....= [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] 54 | 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] 44 | #[derive(AlipayParams)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these derive macros [INFO] [stdout] | [INFO] [stdout] 43 + use alipay_params::AlipayParams; [INFO] [stdout] | [INFO] [stdout] 43 + 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] 65 | 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] 43 + 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] 67 | 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_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] 253 | let client = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 253 - let client = ...; [INFO] [stdout] 253 + let client = ..; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 253 - let client = ...; [INFO] [stdout] 253 + 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] 253 | 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] 253 - let client = ...; [INFO] [stdout] 253 + 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] 243 | #[derive(AlipayParams)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these derive macros [INFO] [stdout] | [INFO] [stdout] 242 + use alipay_params::AlipayParams; [INFO] [stdout] | [INFO] [stdout] 242 + 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] 242 | ...case)] fn _doctest_main_src_client_with_params_rs_242_0() { [INFO] [stdout] | -------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 255 | ...lient_with_params.post_file("alipay.offline.material.image.upload", "image_content", "test.png", file.as_ref()).await.unwrap().i... [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::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] 268 | 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] 269 | 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] 270 | 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] 271 | 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] 274 | .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] 282 | 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] 263 + 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] 265 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_264_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 275 | .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] 266 | let client = alipay_rs::Client::new( [INFO] [stdout] | ______________^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] 267 | | "20210xxxxxxxxxxx", [INFO] [stdout] 268 | | include_str!("../公钥.txt"), [INFO] [stdout] 269 | | include_str!("../私钥.txt"), [INFO] [stdout] 270 | | Some(include_str!("../appCertPublicKey_20210xxxxxxxxxxx.crt")), [INFO] [stdout] 271 | | Some(include_str!("../alipayRootCert.crt")) [INFO] [stdout] 272 | | ); [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] 266 ~ let client = alipay_rs::Client::new( [INFO] [stdout] 267 + "20210xxxxxxxxxxx", [INFO] [stdout] 268 ~ include_str!("../公钥.txt"), [INFO] [stdout] 269 ~ include_str!("../私钥.txt"), [INFO] [stdout] 270 + Some(include_str!("../appCertPublicKey_20210xxxxxxxxxxx.crt")), [INFO] [stdout] 271 + Some(include_str!("../alipayRootCert.crt")), [INFO] [stdout] 272 + /* bool */, [INFO] [stdout] 273 ~ ); [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] 273 | let data:serde_json::Value = client [INFO] [stdout] | __________________________________- [INFO] [stdout] 274 | | .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] 263 + 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/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] 53 | .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] 54 | .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] 55 | .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] 56 | .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] 91 | .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] 92 | .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] 93 | .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] 94 | .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] 118 | .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] 119 | .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] 120 | .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] 121 | .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] 20 | 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] 19 | 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] 129 | #[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] 23 | #[derive(AlipayParams, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these derive macros [INFO] [stdout] | [INFO] [stdout] 19 + use alipay_params::AlipayParams; [INFO] [stdout] | [INFO] [stdout] 19 + 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] 31 | #[derive(AlipayParams, Debug)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these derive macros [INFO] [stdout] | [INFO] [stdout] 19 + use alipay_params::AlipayParams; [INFO] [stdout] | [INFO] [stdout] 19 + 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] 116 | 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] 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] ::: /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] 13 + use crate::alipay_rs::Cli; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:58:34 [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] 60 | | .await.unwrap().into_json().unwrap(); [INFO] [stdout] | |______________^ cannot infer type [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] 105 | 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] 67 | 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] 106 | let data:serde_json::Value = client_with_params [INFO] [stdout] | __________________________________- [INFO] [stdout] 107 | | .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] 13 + use crate::alipay_rs::MutCli; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:106:34 [INFO] [stdout] | [INFO] [stdout] 106 | let data:serde_json::Value = client_with_params [INFO] [stdout] | __________________________________^ [INFO] [stdout] 107 | | .post("alipay.fund.trans.uni.transfer", transfer) [INFO] [stdout] 108 | | .await.unwrap().into_json().unwrap(); [INFO] [stdout] | |______________^ cannot infer type [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:126:30 [INFO] [stdout] | [INFO] [stdout] 126 | ... = client_with_params.post_file("alipay.offline.material.image.upload", "image_content", "test.png", file.as_ref()).await.unwrap... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [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] 130 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 25 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, 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] 202 | .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] 203 | .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] 204 | .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] 205 | .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] 138 | 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] 139 | 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] 197 | #[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] 212 | 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] 138 + 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] 174 | let data:serde_json::Value = client [INFO] [stdout] | __________________________________- [INFO] [stdout] 175 | | .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] 136 + use crate::alipay_rs::Cli; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:174:34 [INFO] [stdout] | [INFO] [stdout] 174 | let data:serde_json::Value = client [INFO] [stdout] | __________________________________^ [INFO] [stdout] 175 | | .post("alipay.open.mini.item.page.query", query) [INFO] [stdout] 176 | | .await.unwrap().into_json().unwrap(); [INFO] [stdout] | |______________^ cannot infer type [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] 192 | let data:serde_json::Value = client [INFO] [stdout] | __________________________________- [INFO] [stdout] 193 | | .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] 136 + use crate::alipay_rs::Cli; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:192:34 [INFO] [stdout] | [INFO] [stdout] 192 | let data:serde_json::Value = client [INFO] [stdout] | __________________________________^ [INFO] [stdout] 193 | | .post("alipay.fund.trans.uni.transfer", transfer) [INFO] [stdout] 194 | | .await.unwrap().into_json().unwrap(); [INFO] [stdout] | |______________^ cannot infer type [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] 214 | 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[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 214 | / tokio::spawn(async move { [INFO] [stdout] 215 | | ref_query(&cli_clone).await; [INFO] [stdout] 216 | | }).await.unwrap(); [INFO] [stdout] | |____________^ cannot infer type [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] 217 | 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[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 217 | / tokio::spawn(async move { [INFO] [stdout] 218 | | ref_fund_transfer(&cli.clone()).await; [INFO] [stdout] 219 | | }).await.unwrap(); [INFO] [stdout] | |____________^ cannot infer type [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] 198 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433, E0599, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [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.62s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "d58248e4d1f986c9faefa2f67c2cbfed36b0f269991be1e05e83cbfc0a95d6f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d58248e4d1f986c9faefa2f67c2cbfed36b0f269991be1e05e83cbfc0a95d6f1", kill_on_drop: false }` [INFO] [stdout] d58248e4d1f986c9faefa2f67c2cbfed36b0f269991be1e05e83cbfc0a95d6f1