[INFO] fetching crate korea_investment_rs 0.1.2... [INFO] testing korea_investment_rs-0.1.2 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate korea_investment_rs 0.1.2 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate korea_investment_rs 0.1.2 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate korea_investment_rs 0.1.2 [INFO] tweaked toml for crates.io crate korea_investment_rs 0.1.2 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate korea_investment_rs 0.1.2 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate korea_investment_rs 0.1.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d12058d2a8699a63b4c5afa6b4d11493519b4d2e493bc78fc94b876b49741d3f [INFO] running `Command { std: "docker" "start" "-a" "d12058d2a8699a63b4c5afa6b4d11493519b4d2e493bc78fc94b876b49741d3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d12058d2a8699a63b4c5afa6b4d11493519b4d2e493bc78fc94b876b49741d3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d12058d2a8699a63b4c5afa6b4d11493519b4d2e493bc78fc94b876b49741d3f", kill_on_drop: false }` [INFO] [stdout] d12058d2a8699a63b4c5afa6b4d11493519b4d2e493bc78fc94b876b49741d3f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d17a4017da9ecfbbe4b2668e277be01acddd37ffe0ceeb37365b09a67a552bf5 [INFO] running `Command { std: "docker" "start" "-a" "d17a4017da9ecfbbe4b2668e277be01acddd37ffe0ceeb37365b09a67a552bf5", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling cc v1.2.16 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling once_cell v1.21.1 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling rustls-pki-types v1.11.0 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling tokio-util v0.7.14 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling h2 v0.4.8 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.15 [INFO] [stderr] Compiling korea_investment_rs v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/oauth/oauth.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `token_type` and `expires_in` are never read [INFO] [stdout] --> src/oauth/oauth.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | struct TokenResponse { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 7 | access_token: String, [INFO] [stdout] 8 | token_type: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 9 | expires_in: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 08s [INFO] running `Command { std: "docker" "inspect" "d17a4017da9ecfbbe4b2668e277be01acddd37ffe0ceeb37365b09a67a552bf5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d17a4017da9ecfbbe4b2668e277be01acddd37ffe0ceeb37365b09a67a552bf5", kill_on_drop: false }` [INFO] [stdout] d17a4017da9ecfbbe4b2668e277be01acddd37ffe0ceeb37365b09a67a552bf5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3b1c92fc34778b23a9fa5efad5737de5ee5628be9fab04ce79e0dcb88a11c6d4 [INFO] running `Command { std: "docker" "start" "-a" "3b1c92fc34778b23a9fa5efad5737de5ee5628be9fab04ce79e0dcb88a11c6d4", kill_on_drop: false }` [INFO] [stderr] Compiling korea_investment_rs v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/oauth/oauth.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `token_type` and `expires_in` are never read [INFO] [stdout] --> src/oauth/oauth.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | struct TokenResponse { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 7 | access_token: String, [INFO] [stdout] 8 | token_type: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 9 | expires_in: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_inquire_price` [INFO] [stdout] --> examples/get_inquire_daily_itemchartprice.rs:5:74 [INFO] [stdout] | [INFO] [stdout] 5 | ApiHeader, Custtype, IDIQuery, get_inquire_daily_itemchartprice, get_inquire_price, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/oauth/oauth.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `token_type` and `expires_in` are never read [INFO] [stdout] --> src/oauth/oauth.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | struct TokenResponse { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 7 | access_token: String, [INFO] [stdout] 8 | token_type: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 9 | expires_in: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.12s [INFO] running `Command { std: "docker" "inspect" "3b1c92fc34778b23a9fa5efad5737de5ee5628be9fab04ce79e0dcb88a11c6d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b1c92fc34778b23a9fa5efad5737de5ee5628be9fab04ce79e0dcb88a11c6d4", kill_on_drop: false }` [INFO] [stdout] 3b1c92fc34778b23a9fa5efad5737de5ee5628be9fab04ce79e0dcb88a11c6d4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5da6b2b3aab038fc03276f85bf53476198c5af6c890b480986a867d0f9dcd273 [INFO] running `Command { std: "docker" "start" "-a" "5da6b2b3aab038fc03276f85bf53476198c5af6c890b480986a867d0f9dcd273", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Serialize` [INFO] [stderr] --> src/oauth/oauth.rs:2:26 [INFO] [stderr] | [INFO] [stderr] 2 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: fields `token_type` and `expires_in` are never read [INFO] [stderr] --> src/oauth/oauth.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 6 | struct TokenResponse { [INFO] [stderr] | ------------- fields in this struct [INFO] [stderr] 7 | access_token: String, [INFO] [stderr] 8 | token_type: String, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 9 | expires_in: i32, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TokenResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `korea_investment_rs` (lib) generated 2 warnings (run `cargo fix --lib -p korea_investment_rs` to apply 1 suggestion) [INFO] [stderr] warning: `korea_investment_rs` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] warning: unused import: `get_inquire_price` [INFO] [stderr] --> examples/get_inquire_daily_itemchartprice.rs:5:74 [INFO] [stderr] | [INFO] [stderr] 5 | ApiHeader, Custtype, IDIQuery, get_inquire_daily_itemchartprice, get_inquire_price, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `korea_investment_rs` (example "get_inquire_daily_itemchartprice") generated 1 warning (run `cargo fix --example "get_inquire_daily_itemchartprice"` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/korea_investment_rs-561d00076edd3663) [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 korea_investment_rs [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/oauth/oauth.rs - oauth::oauth::Oauth::new (line 28) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/oauth/oauth.rs - oauth::oauth::Oauth::new (line 28) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `env` [INFO] [stdout] --> src/oauth/oauth.rs:30:19 [INFO] [stdout] | [INFO] [stdout] 4 | let app_key = env::var("PUB_KEY").expect("APP_KEY not set in .env file"); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `env` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `env`, use `cargo add env` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `env` [INFO] [stdout] --> src/oauth/oauth.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 5 | let app_secret = env::var("SCREST_KEY").expect("APP_SECRET not set in .env file"); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `env` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `env`, use `cargo add env` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OauthType` [INFO] [stdout] --> src/oauth/oauth.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 6 | let r#type = OauthType::PRACTICE; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `OauthType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use korea_investment_rs::oauth::OauthType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Oauth` [INFO] [stdout] --> src/oauth/oauth.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 7 | let token = Oauth::new(app_key, app_secret, r#type).await.unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared type `Oauth` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use korea_investment_rs::oauth::Oauth; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/oauth/oauth.rs:33:57 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_oauth_oauth_rs_28_0() { [INFO] [stdout] | ------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let token = Oauth::new(app_key, app_secret, r#type).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dotenv` in this scope [INFO] [stdout] --> src/oauth/oauth.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 3 | dotenv().ok(); [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, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/oauth/oauth.rs - oauth::oauth::Oauth::new (line 28) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.15s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.24s; merged doctests compilation took 0.09s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "5da6b2b3aab038fc03276f85bf53476198c5af6c890b480986a867d0f9dcd273", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5da6b2b3aab038fc03276f85bf53476198c5af6c890b480986a867d0f9dcd273", kill_on_drop: false }` [INFO] [stdout] 5da6b2b3aab038fc03276f85bf53476198c5af6c890b480986a867d0f9dcd273