[INFO] fetching crate alipay-rs 0.2.1... [INFO] testing alipay-rs-0.2.1 against 1.59.0 for beta-1.60-1 [INFO] extracting crate alipay-rs 0.2.1 into /workspace/builds/worker-8/source [INFO] validating manifest of crates.io crate alipay-rs 0.2.1 on toolchain 1.59.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate alipay-rs 0.2.1 [INFO] finished tweaking crates.io crate alipay-rs 0.2.1 [INFO] tweaked toml for crates.io crate alipay-rs 0.2.1 written to /workspace/builds/worker-8/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0ca5d8ecfb3f584ce2956ed4e5a0565772f4386e26e68f620d600715c9e5d470 [INFO] running `Command { std: "docker" "start" "-a" "0ca5d8ecfb3f584ce2956ed4e5a0565772f4386e26e68f620d600715c9e5d470", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0ca5d8ecfb3f584ce2956ed4e5a0565772f4386e26e68f620d600715c9e5d470", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ca5d8ecfb3f584ce2956ed4e5a0565772f4386e26e68f620d600715c9e5d470", kill_on_drop: false }` [INFO] [stdout] 0ca5d8ecfb3f584ce2956ed4e5a0565772f4386e26e68f620d600715c9e5d470 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3eb3740123894bcd0e795cc5ccfa80e83c4c79f12d5a43f0134da1c9f3f73409 [INFO] running `Command { std: "docker" "start" "-a" "3eb3740123894bcd0e795cc5ccfa80e83c4c79f12d5a43f0134da1c9f3f73409", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Compiling once_cell v1.9.0 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling rustls v0.20.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling modifier v0.1.0 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling groupable v0.2.0 [INFO] [stderr] Compiling chunked_transfer v0.3.1 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling ascii v0.8.7 [INFO] [stderr] Compiling chunked_transfer v1.4.0 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling openssl-src v111.17.0+1.1.1m [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling mime v0.2.6 [INFO] [stderr] Compiling to_hash_map v0.1.0 [INFO] [stderr] Compiling md-5 v0.9.1 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling unsafe-any v0.4.2 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling typemap v0.3.3 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling plugin v0.2.6 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling buf_redux v0.8.4 [INFO] [stderr] Compiling twoway v0.1.8 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Compiling flate2 v1.0.22 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling phf v0.7.24 [INFO] [stderr] Compiling struct-map v0.1.0 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling mime_guess v1.8.8 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling hyper v0.10.16 [INFO] [stderr] Compiling tiny_http v0.6.4 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling mustache v0.9.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling webpki v0.22.0 [INFO] [stderr] Compiling sct v0.7.0 [INFO] [stderr] Compiling iron v0.6.1 [INFO] [stderr] Compiling webpki-roots v0.22.2 [INFO] [stderr] Compiling nickel v0.11.0 [INFO] [stderr] Compiling multipart v0.18.0 [INFO] [stderr] Compiling ureq v2.4.0 [INFO] [stderr] Compiling alipay-rs v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 20.07s [INFO] running `Command { std: "docker" "inspect" "3eb3740123894bcd0e795cc5ccfa80e83c4c79f12d5a43f0134da1c9f3f73409", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3eb3740123894bcd0e795cc5ccfa80e83c4c79f12d5a43f0134da1c9f3f73409", kill_on_drop: false }` [INFO] [stdout] 3eb3740123894bcd0e795cc5ccfa80e83c4c79f12d5a43f0134da1c9f3f73409 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4f0b29cfe79b2b899a4a4134a6a6d5a2632d9cf4f6037abf5dba7c8fe75dd5bd [INFO] running `Command { std: "docker" "start" "-a" "4f0b29cfe79b2b899a4a4134a6a6d5a2632d9cf4f6037abf5dba7c8fe75dd5bd", kill_on_drop: false }` [INFO] [stderr] Compiling alipay-rs v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.66s [INFO] running `Command { std: "docker" "inspect" "4f0b29cfe79b2b899a4a4134a6a6d5a2632d9cf4f6037abf5dba7c8fe75dd5bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f0b29cfe79b2b899a4a4134a6a6d5a2632d9cf4f6037abf5dba7c8fe75dd5bd", kill_on_drop: false }` [INFO] [stdout] 4f0b29cfe79b2b899a4a4134a6a6d5a2632d9cf4f6037abf5dba7c8fe75dd5bd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f91b180c4b7ef8ec41b3b18628cb41e05ffbe8371c695f389ab1792979380598 [INFO] running `Command { std: "docker" "start" "-a" "f91b180c4b7ef8ec41b3b18628cb41e05ffbe8371c695f389ab1792979380598", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/alipay_rs-6e8c4d84264afbb1) [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 5 tests [INFO] [stdout] test src/alipay.rs - alipay::Client::add_public_params (line 228) ... FAILED [INFO] [stdout] test src/alipay.rs - alipay::Client::set_public_params (line 191) ... FAILED [INFO] [stdout] test src/alipay.rs - alipay::Client::post_file (line 302) ... FAILED [INFO] [stdout] test src/alipay.rs - alipay::Client::post (line 263) ... FAILED [INFO] [stdout] test src/lib.rs - (line 17) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/alipay.rs - alipay::Client::add_public_params (line 228) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/alipay.rs:235:1 [INFO] [stdout] | [INFO] [stdout] 9 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 9 | .. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 9 | ..= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: struct literals are not allowed here [INFO] [stdout] --> src/alipay.rs:237:13 [INFO] [stdout] | [INFO] [stdout] 11 | let image = ImageUpload { [INFO] [stdout] | _____________^ [INFO] [stdout] 12 | | image_type: "png".to_owned(), [INFO] [stdout] 13 | | image_name: "test".to_owned(), [INFO] [stdout] 14 | | }; [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] help: surround the struct literal with parentheses [INFO] [stdout] | [INFO] [stdout] 11 ~ let image = (ImageUpload { [INFO] [stdout] 12 | image_type: "png".to_owned(), [INFO] [stdout] 13 | image_name: "test".to_owned(), [INFO] [stdout] 14 ~ }); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/alipay.rs:242:1 [INFO] [stdout] | [INFO] [stdout] 16 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 16 | .. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 16 | ..= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: expected expression, found statement (`let`) [INFO] [stdout] --> src/alipay.rs:237:1 [INFO] [stdout] | [INFO] [stdout] 11 | / let image = ImageUpload { [INFO] [stdout] 12 | | image_type: "png".to_owned(), [INFO] [stdout] 13 | | image_name: "test".to_owned(), [INFO] [stdout] 14 | | }; [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: variable declaration using `let` is a statement [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `AlipayParam` in this scope [INFO] [stdout] --> src/alipay.rs:229:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(AlipayParam)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] alipay_rs::AlipayParam [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/alipay.rs:244:1 [INFO] [stdout] | [INFO] [stdout] 18 | client.add_public_params(image); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0658]: `let` expressions in this position are experimental [INFO] [stdout] --> src/alipay.rs:237:1 [INFO] [stdout] | [INFO] [stdout] 11 | / let image = ImageUpload { [INFO] [stdout] 12 | | image_type: "png".to_owned(), [INFO] [stdout] 13 | | image_name: "test".to_owned(), [INFO] [stdout] 14 | | }; [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #53667 for more information [INFO] [stdout] = help: you can write `matches!(, )` instead of `let = ` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0658. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/alipay.rs - alipay::Client::set_public_params (line 191) stdout ---- [INFO] [stdout] error: cannot find derive macro `AlipayParam` in this scope [INFO] [stdout] --> src/alipay.rs:192:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(AlipayParam)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] alipay_rs::AlipayParam [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/alipay.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 22 | client.set_public_params(public_params); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/alipay.rs - alipay::Client::post_file (line 302) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/alipay.rs:313:18 [INFO] [stdout] | [INFO] [stdout] 13 | let mut client = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 13 | let mut client = ..; [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 13 | let mut client = ..=; [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/alipay.rs:313:18 [INFO] [stdout] | [INFO] [stdout] 13 | let mut client = ...; [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `AlipayParam` in this scope [INFO] [stdout] --> src/alipay.rs:303:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(AlipayParam)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] alipay_rs::AlipayParam [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/alipay.rs:315:130 [INFO] [stdout] | [INFO] [stdout] 2 | ...nake_case)] fn _doctest_main_src_alipay_rs_302_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 15 | ...e = client.post_file("alipay.offline.material.image.upload", "image_content", "test.png", file.as_ref()).await.unwrap(); [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/alipay.rs - alipay::Client::post (line 263) stdout ---- [INFO] [stdout] error: couldn't read src/../私钥.txt: No such file or directory (os error 2) [INFO] [stdout] --> src/alipay.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 6 | include_str!("../私钥.txt"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: couldn't read src/../appCertPublicKey_20210xxxxxxxxxxx.crt: No such file or directory (os error 2) [INFO] [stdout] --> src/alipay.rs:267:14 [INFO] [stdout] | [INFO] [stdout] 7 | Some(include_str!("../appCertPublicKey_20210xxxxxxxxxxx.crt")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: couldn't read src/../alipayRootCert.crt: No such file or directory (os error 2) [INFO] [stdout] --> src/alipay.rs:268:14 [INFO] [stdout] | [INFO] [stdout] 8 | Some(include_str!("../alipayRootCert.crt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `transfer` in this scope [INFO] [stdout] --> src/alipay.rs:271:49 [INFO] [stdout] | [INFO] [stdout] 11 | .post("alipay.fund.trans.uni.transfer", transfer) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/alipay.rs:271:58 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_alipay_rs_263_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 11 | .post("alipay.fund.trans.uni.transfer", transfer) [INFO] [stdout] | __________________________________________________________^ [INFO] [stdout] 12 | | .await.unwrap(); [INFO] [stdout] | |______________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [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 17) stdout ---- [INFO] [stdout] error: couldn't read src/../私钥.txt: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 42 | include_str!("../私钥.txt"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info) [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:58:14 [INFO] [stdout] | [INFO] [stdout] 43 | Some(include_str!("../appCertPublicKey_20210xxxxxxxxxxx.crt")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: couldn't read src/../alipayRootCert.crt: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 44 | Some(include_str!("../alipayRootCert.crt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: couldn't read src/../私钥.txt: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 67 | include_str!("../私钥.txt"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info) [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:83:14 [INFO] [stdout] | [INFO] [stdout] 68 | Some(include_str!("../appCertPublicKey_20210xxxxxxxxxxx.crt")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: couldn't read src/../alipayRootCert.crt: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:84:14 [INFO] [stdout] | [INFO] [stdout] 69 | Some(include_str!("../alipayRootCert.crt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: couldn't read src/../私钥.txt: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 103 | include_str!("../私钥.txt"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info) [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:119:14 [INFO] [stdout] | [INFO] [stdout] 104 | Some(include_str!("../appCertPublicKey_20210xxxxxxxxxxx.crt")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: couldn't read src/../alipayRootCert.crt: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:120:14 [INFO] [stdout] | [INFO] [stdout] 105 | Some(include_str!("../alipayRootCert.crt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: couldn't read src/../私钥.txt: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 161 | include_str!("../私钥.txt"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info) [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:177:14 [INFO] [stdout] | [INFO] [stdout] 162 | Some(include_str!("../appCertPublicKey_20210xxxxxxxxxxx.crt")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: couldn't read src/../alipayRootCert.crt: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:178:14 [INFO] [stdout] | [INFO] [stdout] 163 | Some(include_str!("../alipayRootCert.crt")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `chrono` [INFO] [stdout] --> src/lib.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 8 | use chrono::{Local}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `chrono` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/lib.rs:185:3 [INFO] [stdout] | [INFO] [stdout] 170 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `api` in `alipay_rs` [INFO] [stdout] --> src/lib.rs:86:26 [INFO] [stdout] | [INFO] [stdout] 71 | let api = alipay_rs::api::Fund::new(client); [INFO] [stdout] | ^^^ could not find `api` in `alipay_rs` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:186:1 [INFO] [stdout] | [INFO] [stdout] 171 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, 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/alipay.rs - alipay::Client::add_public_params (line 228) [INFO] [stdout] src/alipay.rs - alipay::Client::post (line 263) [INFO] [stdout] src/alipay.rs - alipay::Client::post_file (line 302) [INFO] [stdout] src/alipay.rs - alipay::Client::set_public_params (line 191) [INFO] [stdout] src/lib.rs - (line 17) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.14s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "f91b180c4b7ef8ec41b3b18628cb41e05ffbe8371c695f389ab1792979380598", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f91b180c4b7ef8ec41b3b18628cb41e05ffbe8371c695f389ab1792979380598", kill_on_drop: false }` [INFO] [stdout] f91b180c4b7ef8ec41b3b18628cb41e05ffbe8371c695f389ab1792979380598