[INFO] fetching crate alipay-rs 0.2.2... [INFO] testing alipay-rs-0.2.2 against 1.60.0 for beta-1.61-1 [INFO] extracting crate alipay-rs 0.2.2 into /workspace/builds/worker-25/source [INFO] validating manifest of crates.io crate alipay-rs 0.2.2 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate alipay-rs 0.2.2 [INFO] finished tweaking crates.io crate alipay-rs 0.2.2 [INFO] tweaked toml for crates.io crate alipay-rs 0.2.2 written to /workspace/builds/worker-25/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tiny_http v0.6.4 [INFO] [stderr] Downloaded mustache v0.9.0 [INFO] [stderr] Downloaded groupable v0.2.0 [INFO] [stderr] Downloaded chunked_transfer v0.3.1 [INFO] [stderr] Downloaded mime_guess v1.8.8 [INFO] [stderr] Downloaded iron v0.6.1 [INFO] [stderr] Downloaded struct-map v0.1.0 [INFO] [stderr] Downloaded modifier v0.1.0 [INFO] [stderr] Downloaded plugin v0.2.6 [INFO] [stderr] Downloaded ascii v0.8.7 [INFO] [stderr] Downloaded nickel v0.11.0 [INFO] [stderr] Downloaded to_hash_map v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c3c08f7cf04dfe88409890901b5380c1a81454c4ea4ba2de4c8a452dcd2217e3 [INFO] running `Command { std: "docker" "start" "-a" "c3c08f7cf04dfe88409890901b5380c1a81454c4ea4ba2de4c8a452dcd2217e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c3c08f7cf04dfe88409890901b5380c1a81454c4ea4ba2de4c8a452dcd2217e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3c08f7cf04dfe88409890901b5380c1a81454c4ea4ba2de4c8a452dcd2217e3", kill_on_drop: false }` [INFO] [stdout] c3c08f7cf04dfe88409890901b5380c1a81454c4ea4ba2de4c8a452dcd2217e3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 53c9792fe7b70e8321e09c00f98e62e9dcfb8c9588d8a542b8525402e09ac7f1 [INFO] running `Command { std: "docker" "start" "-a" "53c9792fe7b70e8321e09c00f98e62e9dcfb8c9588d8a542b8525402e09ac7f1", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling httparse v1.7.0 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling typeable v0.1.2 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling rustls v0.20.4 [INFO] [stderr] Compiling modifier v0.1.0 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling chunked_transfer v0.3.1 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling groupable v0.2.0 [INFO] [stderr] Compiling ascii v0.8.7 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling chunked_transfer v1.4.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling openssl-src v111.18.0+1.1.1n [INFO] [stderr] Compiling miniz_oxide v0.5.1 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling twoway v0.1.8 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling to_hash_map v0.1.0 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling unsafe-any v0.4.2 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling mime v0.2.6 [INFO] [stderr] Compiling mustache v0.9.0 [INFO] [stderr] Compiling md-5 v0.9.1 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling buf_redux v0.8.4 [INFO] [stderr] Compiling typemap v0.3.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling plugin v0.2.6 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling flate2 v1.0.23 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling phf v0.7.24 [INFO] [stderr] Compiling struct-map v0.1.0 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling mime_guess v1.8.8 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling hyper v0.10.16 [INFO] [stderr] Compiling tiny_http v0.6.4 [INFO] [stderr] Compiling webpki v0.22.0 [INFO] [stderr] Compiling sct v0.7.0 [INFO] [stderr] Compiling webpki-roots v0.22.3 [INFO] [stderr] Compiling nickel v0.11.0 [INFO] [stderr] Compiling iron v0.6.1 [INFO] [stderr] Compiling multipart v0.18.0 [INFO] [stderr] Compiling ureq v2.4.0 [INFO] [stderr] Compiling alipay-rs v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 30.65s [INFO] running `Command { std: "docker" "inspect" "53c9792fe7b70e8321e09c00f98e62e9dcfb8c9588d8a542b8525402e09ac7f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53c9792fe7b70e8321e09c00f98e62e9dcfb8c9588d8a542b8525402e09ac7f1", kill_on_drop: false }` [INFO] [stdout] 53c9792fe7b70e8321e09c00f98e62e9dcfb8c9588d8a542b8525402e09ac7f1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ffcf4bfbb94544671fdb233ec5d8739aa5990988e5bbf9d5cd890e0340d18a32 [INFO] running `Command { std: "docker" "start" "-a" "ffcf4bfbb94544671fdb233ec5d8739aa5990988e5bbf9d5cd890e0340d18a32", kill_on_drop: false }` [INFO] [stderr] Compiling alipay-rs v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.96s [INFO] running `Command { std: "docker" "inspect" "ffcf4bfbb94544671fdb233ec5d8739aa5990988e5bbf9d5cd890e0340d18a32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ffcf4bfbb94544671fdb233ec5d8739aa5990988e5bbf9d5cd890e0340d18a32", kill_on_drop: false }` [INFO] [stdout] ffcf4bfbb94544671fdb233ec5d8739aa5990988e5bbf9d5cd890e0340d18a32 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4c5f4a39d953e5155b023981a3527d24e13bcf79ec405c4b8bee6fcbe3f4c6ee [INFO] running `Command { std: "docker" "start" "-a" "4c5f4a39d953e5155b023981a3527d24e13bcf79ec405c4b8bee6fcbe3f4c6ee", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/alipay_rs-469159c1f8a7a2c6) [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests alipay-rs [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] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/alipay.rs - alipay::Client::post_file (line 302) ... FAILED [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 (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::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::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 unstable [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] [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 (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.23s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "4c5f4a39d953e5155b023981a3527d24e13bcf79ec405c4b8bee6fcbe3f4c6ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c5f4a39d953e5155b023981a3527d24e13bcf79ec405c4b8bee6fcbe3f4c6ee", kill_on_drop: false }` [INFO] [stdout] 4c5f4a39d953e5155b023981a3527d24e13bcf79ec405c4b8bee6fcbe3f4c6ee