[INFO] fetching crate junobuild-utils 0.4.0...
[INFO] testing junobuild-utils-0.4.0 against 1.97.0-beta.6 for beta-1.98-1
[INFO] extracting crate junobuild-utils 0.4.0 into /workspace/builds/worker-4-tc1/source
[INFO] started tweaking crates.io crate junobuild-utils 0.4.0
[INFO] finished tweaking crates.io crate junobuild-utils 0.4.0
[INFO] tweaked toml for crates.io crate junobuild-utils 0.4.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate junobuild-utils 0.4.0 on toolchain 1.97.0-beta.6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate junobuild-utils 0.4.0 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" "+1.97.0-beta.6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded candid v0.10.20
[INFO] [stderr]   Downloaded candid_derive v0.10.20
[INFO] [stderr]   Downloaded stacker v0.1.15
[INFO] [stderr]   Downloaded data-encoding v2.5.0
[INFO] [stderr]   Downloaded psm v0.1.21
[INFO] [stderr]   Downloaded rustversion v1.0.14
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 138843a4fcd097d779fb17c5ab9d76ae93ce87ab596d0037392d41ff37a40adb
[INFO] running `Command { std: "docker" "start" "138843a4fcd097d779fb17c5ab9d76ae93ce87ab596d0037392d41ff37a40adb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "138843a4fcd097d779fb17c5ab9d76ae93ce87ab596d0037392d41ff37a40adb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "138843a4fcd097d779fb17c5ab9d76ae93ce87ab596d0037392d41ff37a40adb" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "138843a4fcd097d779fb17c5ab9d76ae93ce87ab596d0037392d41ff37a40adb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "138843a4fcd097d779fb17c5ab9d76ae93ce87ab596d0037392d41ff37a40adb" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.93
[INFO] [stderr]    Compiling libc v0.2.169
[INFO] [stderr]    Compiling crc32fast v1.3.2
[INFO] [stderr]    Compiling thiserror v1.0.56
[INFO] [stderr]    Compiling rustversion v1.0.14
[INFO] [stderr]    Compiling cpufeatures v0.2.12
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling num-traits v0.2.18
[INFO] [stderr]    Compiling anyhow v1.0.98
[INFO] [stderr]    Compiling either v1.9.0
[INFO] [stderr]    Compiling data-encoding v2.5.0
[INFO] [stderr]    Compiling unicode-width v0.1.11
[INFO] [stderr]    Compiling memchr v2.7.1
[INFO] [stderr]    Compiling leb128 v0.2.5
[INFO] [stderr]    Compiling pretty v0.12.3
[INFO] [stderr]    Compiling serde_json v1.0.149
[INFO] [stderr]    Compiling quote v1.0.38
[INFO] [stderr]    Compiling cc v1.0.83
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling syn v2.0.98
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling psm v0.1.21
[INFO] [stderr]    Compiling stacker v0.1.15
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling thiserror-impl v1.0.56
[INFO] [stderr]    Compiling candid_derive v0.10.20
[INFO] [stderr]    Compiling binread_derive v2.1.0
[INFO] [stderr]    Compiling binread v2.2.0
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling ic_principal v0.1.1
[INFO] [stderr]    Compiling num-bigint v0.4.6
[INFO] [stderr]    Compiling candid v0.10.20
[INFO] [stderr]    Compiling junobuild-utils v0.4.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.07s
[INFO] running `Command { std: "docker" "inspect" "138843a4fcd097d779fb17c5ab9d76ae93ce87ab596d0037392d41ff37a40adb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "138843a4fcd097d779fb17c5ab9d76ae93ce87ab596d0037392d41ff37a40adb" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling junobuild-utils v0.4.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.09s
[INFO] running `Command { std: "docker" "inspect" "138843a4fcd097d779fb17c5ab9d76ae93ce87ab596d0037392d41ff37a40adb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "138843a4fcd097d779fb17c5ab9d76ae93ce87ab596d0037392d41ff37a40adb" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/junobuild_utils-df9c760eedc0d1e7)
[INFO] [stdout] 
[INFO] [stdout] running 63 tests
[INFO] [stdout] test serializers::bigint::tests::error_on_missing_field ... ok
[INFO] [stdout] test serializers::bigint::tests::error_on_duplicate_field ... ok
[INFO] [stdout] test serializers::bigint::tests::deserialize_doc_data_bigint ... ok
[INFO] [stdout] test serializers::bigint::tests::error_on_invalid_bigint_format ... ok
[INFO] [stdout] test serializers::bigint::tests::serialize_doc_data_bigint ... ok
[INFO] [stdout] test serializers::bigint::tests::test_display_implementation ... ok
[INFO] [stdout] test serializers::nat::tests::deserialize_doc_data_nat ... ok
[INFO] [stdout] test serializers::nat::tests::error_on_invalid_nat_format ... ok
[INFO] [stdout] test serializers::nat::tests::error_on_duplicate_field ... ok
[INFO] [stdout] test serializers::nat::tests::error_on_missing_field ... ok
[INFO] [stdout] test serializers::nat::tests::round_trip ... ok
[INFO] [stdout] test serializers::nat::tests::serialize_doc_data_nat ... ok
[INFO] [stdout] test serializers::bigint::tests::round_trip ... ok
[INFO] [stdout] test serializers::nat::tests::test_display_implementation ... ok
[INFO] [stdout] test serializers::principal::tests::deserialize_doc_data_principal ... ok
[INFO] [stdout] test serializers::principal::tests::error_on_duplicate_field ... ok
[INFO] [stdout] test serializers::uint8array::tests::error_on_missing_field ... ok
[INFO] [stdout] test serializers::principal::tests::error_on_invalid_principal_format ... ok
[INFO] [stdout] test serializers::principal::tests::error_on_missing_field ... ok
[INFO] [stdout] test serializers::uint8array::tests::test_display_implementation ... ok
[INFO] [stdout] test serializers::uint8array::tests::serialize_doc_data_uint8array ... ok
[INFO] [stdout] test serializers::uint8array::tests::round_trip ... ok
[INFO] [stdout] test with::bigint_opt::tests::deserialize_some ... ok
[INFO] [stdout] test serializers::principal::tests::serialize_doc_data_principal ... ok
[INFO] [stdout] test serializers::uint8array::tests::error_on_invalid_uint8array_format ... ok
[INFO] [stdout] test with::bigint_opt::tests::round_trip_some ... ok
[INFO] [stdout] test with::bigint_opt::tests::serialize_none ... ok
[INFO] [stdout] test with::bigint::tests::round_trip ... ok
[INFO] [stdout] test with::bigint::tests::serialize_bigint ... ok
[INFO] [stdout] test with::bigint_opt::tests::deserialize_none ... ok
[INFO] [stdout] test serializers::uint8array::tests::deserialize_doc_data_uint8array ... ok
[INFO] [stdout] test with::bigint_opt::tests::serialize_some ... ok
[INFO] [stdout] test serializers::principal::tests::round_trip ... ok
[INFO] [stdout] test with::nat::tests::deserialize_nat ... ok
[INFO] [stdout] test with::nat::tests::serialize_nat ... ok
[INFO] [stdout] test with::nat_opt::tests::serialize_none ... ok
[INFO] [stdout] test with::bigint::tests::deserialize_bigint ... ok
[INFO] [stdout] test with::nat::tests::round_trip ... ok
[INFO] [stdout] test with::principal_opt::tests::deserialize_none ... ok
[INFO] [stdout] test with::nat_opt::tests::deserialize_some ... ok
[INFO] [stdout] test with::principal::tests::serialize_principal ... ok
[INFO] [stdout] test with::bigint_opt::tests::round_trip_none ... ok
[INFO] [stdout] test with::nat_opt::tests::round_trip_some ... ok
[INFO] [stdout] test serializers::uint8array::tests::error_on_duplicate_field ... ok
[INFO] [stdout] test with::nat_opt::tests::serialize_some ... ok
[INFO] [stdout] test with::principal::tests::deserialize_principal ... ok
[INFO] [stdout] test with::principal::tests::round_trip ... ok
[INFO] [stdout] test with::principal_opt::tests::deserialize_some ... ok
[INFO] [stdout] test with::nat_opt::tests::deserialize_none ... ok
[INFO] [stdout] test with::nat_opt::tests::round_trip_none ... ok
[INFO] [stdout] test with::principal_opt::tests::round_trip_none ... ok
[INFO] [stdout] test with::principal_opt::tests::serialize_none ... ok
[INFO] [stdout] test with::principal_opt::tests::round_trip_some ... ok
[INFO] [stdout] test with::uint8array::tests::deserialize_uint8array ... ok
[INFO] [stdout] test with::principal_opt::tests::serialize_some ... ok
[INFO] [stdout] test with::uint8array_opt::tests::deserialize_some ... ok
[INFO] [stdout] test with::uint8array_opt::tests::serialize_none ... ok
[INFO] [stdout] test with::uint8array_opt::tests::serialize_some ... ok
[INFO] [stdout] test with::uint8array::tests::serialize_uint8array ... ok
[INFO] [stdout] test with::uint8array_opt::tests::round_trip_none ... ok
[INFO] [stdout] test with::uint8array_opt::tests::round_trip_some ... ok
[INFO] [stdout] test with::uint8array::tests::round_trip ... ok
[INFO] [stdout] test with::uint8array_opt::tests::deserialize_none ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 63 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests junobuild_utils
[INFO] [stdout] 
[INFO] [stdout] running 9 tests
[INFO] [stdout] test src/doc.rs - doc::encode_doc_data_to_string (line 99) ... FAILED
[INFO] [stdout] test src/json.rs - json::decode_json_data (line 19) ... FAILED
[INFO] [stdout] test src/json.rs - json::encode_json_data_to_string (line 73) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 48) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 35) ... FAILED
[INFO] [stdout] test src/json.rs - json::encode_json_data (line 46) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 22) ... FAILED
[INFO] [stdout] test src/doc.rs - doc::encode_doc_data (line 58) ... FAILED
[INFO] [stdout] test src/doc.rs - doc::decode_doc_data (line 20) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/doc.rs - doc::encode_doc_data_to_string (line 99) stdout ----
[INFO] [stdout] error: cannot find attribute `on_set_doc` in this scope
[INFO] [stdout]    --> src/doc.rs:106:3
[INFO] [stdout]     |
[INFO] [stdout] 106 | #[on_set_doc(collections = ["people"])]
[INFO] [stdout]     |   ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Serialize` in this scope
[INFO] [stdout]    --> src/doc.rs:100:10
[INFO] [stdout]     |
[INFO] [stdout] 100 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]     |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope
[INFO] [stdout]    --> src/doc.rs:100:21
[INFO] [stdout]     |
[INFO] [stdout] 100 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]     |                     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `OnSetDocContext` in this scope
[INFO] [stdout]    --> src/doc.rs:107:41
[INFO] [stdout]     |
[INFO] [stdout] 107 | async fn handle_set_person_doc(context: OnSetDocContext) -> Result<(), String> {
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `decode_doc_data` in this scope
[INFO] [stdout]    --> src/doc.rs:108:30
[INFO] [stdout]     |
[INFO] [stdout] 108 |     let mut person: Person = decode_doc_data(&context.data.data.after.data)?;
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `encode_doc_data_to_string` in this scope
[INFO] [stdout]    --> src/doc.rs:111:24
[INFO] [stdout]     |
[INFO] [stdout] 111 |     let updated_data = encode_doc_data_to_string(&person)
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 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/json.rs - json::decode_json_data (line 19) stdout ----
[INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope
[INFO] [stdout]   --> src/json.rs:20:10
[INFO] [stdout]    |
[INFO] [stdout] 20 | #[derive(Deserialize)]
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `bytes` in this scope
[INFO] [stdout]   --> src/json.rs:25:37
[INFO] [stdout]    |
[INFO] [stdout] 25 | let data: MyData = decode_json_data(bytes)?;
[INFO] [stdout]    |                                     ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `decode_json_data` in this scope
[INFO] [stdout]   --> src/json.rs:25:20
[INFO] [stdout]    |
[INFO] [stdout] 25 | let data: MyData = decode_json_data(bytes)?;
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 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/json.rs - json::encode_json_data_to_string (line 73) stdout ----
[INFO] [stdout] error: cannot find derive macro `Serialize` in this scope
[INFO] [stdout]   --> src/json.rs:74:10
[INFO] [stdout]    |
[INFO] [stdout] 74 | #[derive(Serialize)]
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `my_data` in this scope
[INFO] [stdout]   --> src/json.rs:79:40
[INFO] [stdout]    |
[INFO] [stdout] 79 | let json = encode_json_data_to_string(&my_data)?;
[INFO] [stdout]    |                                        ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `encode_json_data_to_string` in this scope
[INFO] [stdout]   --> src/json.rs:79:12
[INFO] [stdout]    |
[INFO] [stdout] 79 | let json = encode_json_data_to_string(&my_data)?;
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 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/lib.rs - (line 48) stdout ----
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DocDataPrincipal` in this scope
[INFO] [stdout]   --> src/lib.rs:49:17
[INFO] [stdout]    |
[INFO] [stdout] 49 | let principal = DocDataPrincipal { value: candid::Principal::anonymous() };
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DocDataBigInt` in this scope
[INFO] [stdout]   --> src/lib.rs:50:15
[INFO] [stdout]    |
[INFO] [stdout] 50 | let big_int = DocDataBigInt { value: 123456789 };
[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 E0422`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 35) stdout ----
[INFO] [stdout] error: cannot find derive macro `Serialize` in this scope
[INFO] [stdout]   --> src/lib.rs:36:10
[INFO] [stdout]    |
[INFO] [stdout] 36 | #[derive(Serialize)]
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `my_data` in this scope
[INFO] [stdout]   --> src/lib.rs:41:32
[INFO] [stdout]    |
[INFO] [stdout] 41 | let encoded = encode_doc_data(&my_data).expect("Failed to encode data");
[INFO] [stdout]    |                                ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `encode_doc_data` in this scope
[INFO] [stdout]   --> src/lib.rs:41:15
[INFO] [stdout]    |
[INFO] [stdout] 41 | let encoded = encode_doc_data(&my_data).expect("Failed to encode data");
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 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/json.rs - json::encode_json_data (line 46) stdout ----
[INFO] [stdout] error: cannot find derive macro `Serialize` in this scope
[INFO] [stdout]   --> src/json.rs:47:10
[INFO] [stdout]    |
[INFO] [stdout] 47 | #[derive(Serialize)]
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `my_data` in this scope
[INFO] [stdout]   --> src/json.rs:52:31
[INFO] [stdout]    |
[INFO] [stdout] 52 | let bytes = encode_json_data(&my_data)?;
[INFO] [stdout]    |                               ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `encode_json_data` in this scope
[INFO] [stdout]   --> src/json.rs:52:13
[INFO] [stdout]    |
[INFO] [stdout] 52 | let bytes = encode_json_data(&my_data)?;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 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/lib.rs - (line 22) stdout ----
[INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope
[INFO] [stdout]   --> src/lib.rs:23:10
[INFO] [stdout]    |
[INFO] [stdout] 23 | #[derive(Deserialize)]
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `context` in this scope
[INFO] [stdout]   --> src/lib.rs:28:40
[INFO] [stdout]    |
[INFO] [stdout] 28 | let decoded: MyData = decode_doc_data(&context.data.data.after.data).expect("Failed to decode data");
[INFO] [stdout]    |                                        ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `decode_doc_data` in this scope
[INFO] [stdout]   --> src/lib.rs:28:23
[INFO] [stdout]    |
[INFO] [stdout] 28 | let decoded: MyData = decode_doc_data(&context.data.data.after.data).expect("Failed to decode data");
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 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/doc.rs - doc::encode_doc_data (line 58) stdout ----
[INFO] [stdout] error: cannot find attribute `on_set_doc` in this scope
[INFO] [stdout]   --> src/doc.rs:65:3
[INFO] [stdout]    |
[INFO] [stdout] 65 | #[on_set_doc(collections = ["people"])]
[INFO] [stdout]    |   ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Serialize` in this scope
[INFO] [stdout]   --> src/doc.rs:59:10
[INFO] [stdout]    |
[INFO] [stdout] 59 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope
[INFO] [stdout]   --> src/doc.rs:59:21
[INFO] [stdout]    |
[INFO] [stdout] 59 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |                     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `OnSetDocContext` in this scope
[INFO] [stdout]   --> src/doc.rs:66:41
[INFO] [stdout]    |
[INFO] [stdout] 66 | async fn handle_set_person_doc(context: OnSetDocContext) -> Result<(), String> {
[INFO] [stdout]    |                                         ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `decode_doc_data` in this scope
[INFO] [stdout]   --> src/doc.rs:67:30
[INFO] [stdout]    |
[INFO] [stdout] 67 |     let mut person: Person = decode_doc_data(&context.data.data.after.data)?;
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `encode_doc_data` in this scope
[INFO] [stdout]   --> src/doc.rs:70:24
[INFO] [stdout]    |
[INFO] [stdout] 70 |     let updated_data = encode_doc_data(&person)
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 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/doc.rs - doc::decode_doc_data (line 20) stdout ----
[INFO] [stdout] error: cannot find attribute `on_set_doc` in this scope
[INFO] [stdout]   --> src/doc.rs:27:3
[INFO] [stdout]    |
[INFO] [stdout] 27 | #[on_set_doc(collections = ["people"])]
[INFO] [stdout]    |   ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Serialize` in this scope
[INFO] [stdout]   --> src/doc.rs:21:10
[INFO] [stdout]    |
[INFO] [stdout] 21 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope
[INFO] [stdout]   --> src/doc.rs:21:21
[INFO] [stdout]    |
[INFO] [stdout] 21 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |                     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `OnSetDocContext` in this scope
[INFO] [stdout]   --> src/doc.rs:28:41
[INFO] [stdout]    |
[INFO] [stdout] 28 | async fn handle_set_person_doc(context: OnSetDocContext) -> Result<(), String> {
[INFO] [stdout]    |                                         ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `decode_doc_data` in this scope
[INFO] [stdout]   --> src/doc.rs:29:26
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let person: Person = decode_doc_data(&context.data.data.after.data)
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 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] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/doc.rs - doc::decode_doc_data (line 20)
[INFO] [stdout]     src/doc.rs - doc::encode_doc_data (line 58)
[INFO] [stdout]     src/doc.rs - doc::encode_doc_data_to_string (line 99)
[INFO] [stdout]     src/json.rs - json::decode_json_data (line 19)
[INFO] [stdout]     src/json.rs - json::encode_json_data (line 46)
[INFO] [stdout]     src/json.rs - json::encode_json_data_to_string (line 73)
[INFO] [stdout]     src/lib.rs - (line 22)
[INFO] [stdout]     src/lib.rs - (line 35)
[INFO] [stdout]     src/lib.rs - (line 48)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "138843a4fcd097d779fb17c5ab9d76ae93ce87ab596d0037392d41ff37a40adb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "138843a4fcd097d779fb17c5ab9d76ae93ce87ab596d0037392d41ff37a40adb", kill_on_drop: false }`
[INFO] [stdout] 138843a4fcd097d779fb17c5ab9d76ae93ce87ab596d0037392d41ff37a40adb
