[INFO] fetching crate dioxus-asset-resolver 0.7.1... [INFO] testing dioxus-asset-resolver-0.7.1 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] extracting crate dioxus-asset-resolver 0.7.1 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate dioxus-asset-resolver 0.7.1 [INFO] finished tweaking crates.io crate dioxus-asset-resolver 0.7.1 [INFO] tweaked toml for crates.io crate dioxus-asset-resolver 0.7.1 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate dioxus-asset-resolver 0.7.1 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] crate crates.io crate dioxus-asset-resolver 0.7.1 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num_enum v0.7.5 [INFO] [stderr] Downloaded toml_datetime v0.7.1 [INFO] [stderr] Downloaded num_enum_derive v0.7.5 [INFO] [stderr] Downloaded ndk-context v0.1.1 [INFO] [stderr] Downloaded dioxus-cli-config v0.7.1 [INFO] [stderr] Downloaded raw-window-handle v0.6.2 [INFO] [stderr] Downloaded infer v0.19.0 [INFO] [stderr] Downloaded serde_core v1.0.221 [INFO] [stderr] Downloaded cfb v0.7.3 [INFO] [stderr] Downloaded toml_edit v0.23.5 [INFO] [stderr] Downloaded ndk v0.9.0 [INFO] [stderr] Downloaded jni v0.21.1 [INFO] [stderr] Downloaded serde_derive v1.0.221 [INFO] [stderr] Downloaded ndk-sys v0.6.0+11769913 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 2366c60184ac51380e2f5e58ae1c849eb8f494a9ee97e9d529bf273bd96bb9f6 [INFO] running `Command { std: "docker" "start" "-a" "2366c60184ac51380e2f5e58ae1c849eb8f494a9ee97e9d529bf273bd96bb9f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2366c60184ac51380e2f5e58ae1c849eb8f494a9ee97e9d529bf273bd96bb9f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2366c60184ac51380e2f5e58ae1c849eb8f494a9ee97e9d529bf273bd96bb9f6", kill_on_drop: false }` [INFO] [stdout] 2366c60184ac51380e2f5e58ae1c849eb8f494a9ee97e9d529bf273bd96bb9f6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] a9f5730c804d1fa8197fdaa0ee2a0fc05e01e1d75a26f436e8e3dee8572f4b4d [INFO] running `Command { std: "docker" "start" "-a" "a9f5730c804d1fa8197fdaa0ee2a0fc05e01e1d75a26f436e8e3dee8572f4b4d", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling unicode-ident v1.0.20 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling syn v2.0.108 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling dioxus-asset-resolver v0.7.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.68s [INFO] running `Command { std: "docker" "inspect" "a9f5730c804d1fa8197fdaa0ee2a0fc05e01e1d75a26f436e8e3dee8572f4b4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9f5730c804d1fa8197fdaa0ee2a0fc05e01e1d75a26f436e8e3dee8572f4b4d", kill_on_drop: false }` [INFO] [stdout] a9f5730c804d1fa8197fdaa0ee2a0fc05e01e1d75a26f436e8e3dee8572f4b4d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 709cac9df0c35ef785638d1ab3af4c6e63e1d9e751f9409d6cd2784627212ee8 [INFO] running `Command { std: "docker" "start" "-a" "709cac9df0c35ef785638d1ab3af4c6e63e1d9e751f9409d6cd2784627212ee8", kill_on_drop: false }` [INFO] [stderr] Compiling dioxus-asset-resolver v0.7.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.56s [INFO] running `Command { std: "docker" "inspect" "709cac9df0c35ef785638d1ab3af4c6e63e1d9e751f9409d6cd2784627212ee8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "709cac9df0c35ef785638d1ab3af4c6e63e1d9e751f9409d6cd2784627212ee8", kill_on_drop: false }` [INFO] [stdout] 709cac9df0c35ef785638d1ab3af4c6e63e1d9e751f9409d6cd2784627212ee8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 0ce2fafe8f6385ef826847074215873a5ee8df6ff909e10016f91e2f497cbac2 [INFO] running `Command { std: "docker" "start" "-a" "0ce2fafe8f6385ef826847074215873a5ee8df6ff909e10016f91e2f497cbac2", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [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] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/dioxus_asset_resolver-2d7d438cd42e44c8) [INFO] [stderr] Doc-tests dioxus_asset_resolver [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/lib.rs - asset_path (line 67) ... FAILED [INFO] [stdout] test src/lib.rs - asset_path (line 89) ... FAILED [INFO] [stdout] test src/lib.rs - (line 17) ... FAILED [INFO] [stdout] test src/lib.rs - read_asset_bytes (line 146) ... FAILED [INFO] [stdout] test src/lib.rs - read_asset_bytes (line 165) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - asset_path (line 67) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] --> src/lib.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | use dioxus::prelude::*; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `dioxus`, use `cargo add dioxus` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asset` in this scope [INFO] [stdout] --> src/lib.rs:71:28 [INFO] [stdout] | [INFO] [stdout] 71 | static JSON_ASSET: Asset = asset!("/assets/data.json"); [INFO] [stdout] | ^^^^^ help: a macro with a similar name exists: `assert` [INFO] [stdout] | [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/macros/mod.rs:1586:4 [INFO] [stdout] | [INFO] [stdout] = note: similarly named macro `assert` defined here [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] --> src/lib.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | let path = dioxus::asset_resolver::asset_path(&JSON_ASSET).unwrap(); [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `dioxus`, use `cargo add dioxus` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Asset` in this scope [INFO] [stdout] --> src/lib.rs:71:20 [INFO] [stdout] | [INFO] [stdout] 71 | static JSON_ASSET: Asset = asset!("/assets/data.json"); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/lib.rs:82:31 [INFO] [stdout] | [INFO] [stdout] 82 | let json: serde_json::Value = serde_json::from_slice(&bytes).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/lib.rs:82:11 [INFO] [stdout] | [INFO] [stdout] 82 | let json: serde_json::Value = serde_json::from_slice(&bytes).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - asset_path (line 89) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] --> src/lib.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | use dioxus::prelude::*; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `dioxus`, use `cargo add dioxus` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asset` in this scope [INFO] [stdout] --> src/lib.rs:94:24 [INFO] [stdout] | [INFO] [stdout] 94 | static ASSETS: Asset = asset!("/assets"); [INFO] [stdout] | ^^^^^ help: a macro with a similar name exists: `assert` [INFO] [stdout] | [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/macros/mod.rs:1586:4 [INFO] [stdout] | [INFO] [stdout] = note: similarly named macro `assert` defined here [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] --> src/lib.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | let path = dioxus::asset_resolver::asset_path(format!("{ASSETS}/data.json")).unwrap(); [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `dioxus`, use `cargo add dioxus` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Asset` in this scope [INFO] [stdout] --> src/lib.rs:94:16 [INFO] [stdout] | [INFO] [stdout] 94 | static ASSETS: Asset = asset!("/assets"); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/lib.rs:105:31 [INFO] [stdout] | [INFO] [stdout] 105 | let json: serde_json::Value = serde_json::from_slice(&bytes).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/lib.rs:105:11 [INFO] [stdout] | [INFO] [stdout] 105 | let json: serde_json::Value = serde_json::from_slice(&bytes).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 17) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use dioxus::prelude::*; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `dioxus`, use `cargo add dioxus` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asset` in this scope [INFO] [stdout] --> src/lib.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 22 | static JSON_ASSET: Asset = asset!("/assets/data.json"); [INFO] [stdout] | ^^^^^ help: a macro with a similar name exists: `assert` [INFO] [stdout] | [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/macros/mod.rs:1586:4 [INFO] [stdout] | [INFO] [stdout] = note: similarly named macro `assert` defined here [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] --> src/lib.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let bytes = dioxus::asset_resolver::read_asset_bytes(&JSON_ASSET).await.unwrap(); [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `dioxus`, use `cargo add dioxus` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Asset` in this scope [INFO] [stdout] --> src/lib.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | static JSON_ASSET: Asset = asset!("/assets/data.json"); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let bytes = dioxus::asset_resolver::read_asset_bytes(&JSON_ASSET).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/lib.rs:28:31 [INFO] [stdout] | [INFO] [stdout] 28 | let json: serde_json::Value = serde_json::from_slice(&bytes).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/lib.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | let json: serde_json::Value = serde_json::from_slice(&bytes).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - read_asset_bytes (line 146) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] --> src/lib.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | use dioxus::prelude::*; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `dioxus`, use `cargo add dioxus` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asset` in this scope [INFO] [stdout] --> src/lib.rs:151:28 [INFO] [stdout] | [INFO] [stdout] 151 | static JSON_ASSET: Asset = asset!("/assets/data.json"); [INFO] [stdout] | ^^^^^ help: a macro with a similar name exists: `assert` [INFO] [stdout] | [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/macros/mod.rs:1586:4 [INFO] [stdout] | [INFO] [stdout] = note: similarly named macro `assert` defined here [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] --> src/lib.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let bytes = dioxus::asset_resolver::read_asset_bytes(&JSON_ASSET).await.unwrap(); [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `dioxus`, use `cargo add dioxus` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Asset` in this scope [INFO] [stdout] --> src/lib.rs:151:20 [INFO] [stdout] | [INFO] [stdout] 151 | static JSON_ASSET: Asset = asset!("/assets/data.json"); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let bytes = dioxus::asset_resolver::read_asset_bytes(&JSON_ASSET).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/lib.rs:157:31 [INFO] [stdout] | [INFO] [stdout] 157 | let json: serde_json::Value = serde_json::from_slice(&bytes).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/lib.rs:157:11 [INFO] [stdout] | [INFO] [stdout] 157 | let json: serde_json::Value = serde_json::from_slice(&bytes).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - read_asset_bytes (line 165) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] --> src/lib.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 167 | use dioxus::prelude::*; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `dioxus`, use `cargo add dioxus` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asset` in this scope [INFO] [stdout] --> src/lib.rs:170:24 [INFO] [stdout] | [INFO] [stdout] 170 | static ASSETS: Asset = asset!("/assets"); [INFO] [stdout] | ^^^^^ help: a macro with a similar name exists: `assert` [INFO] [stdout] | [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/macros/mod.rs:1586:4 [INFO] [stdout] | [INFO] [stdout] = note: similarly named macro `assert` defined here [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] --> src/lib.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let bytes = dioxus::asset_resolver::read_asset_bytes(format!("{ASSETS}/data.json")).await.unwrap(); [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `dioxus` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `dioxus`, use `cargo add dioxus` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Asset` in this scope [INFO] [stdout] --> src/lib.rs:170:16 [INFO] [stdout] | [INFO] [stdout] 170 | static ASSETS: Asset = asset!("/assets"); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let bytes = dioxus::asset_resolver::read_asset_bytes(format!("{ASSETS}/data.json")).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/lib.rs:176:31 [INFO] [stdout] | [INFO] [stdout] 176 | let json: serde_json::Value = serde_json::from_slice(&bytes).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/lib.rs:176:11 [INFO] [stdout] | [INFO] [stdout] 176 | let json: serde_json::Value = serde_json::from_slice(&bytes).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0433. [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/lib.rs - (line 17) [INFO] [stdout] src/lib.rs - asset_path (line 67) [INFO] [stdout] src/lib.rs - asset_path (line 89) [INFO] [stdout] src/lib.rs - read_asset_bytes (line 146) [INFO] [stdout] src/lib.rs - read_asset_bytes (line 165) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.46s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "0ce2fafe8f6385ef826847074215873a5ee8df6ff909e10016f91e2f497cbac2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ce2fafe8f6385ef826847074215873a5ee8df6ff909e10016f91e2f497cbac2", kill_on_drop: false }` [INFO] [stdout] 0ce2fafe8f6385ef826847074215873a5ee8df6ff909e10016f91e2f497cbac2