[INFO] fetching crate trelent-hyok 0.1.12... [INFO] testing trelent-hyok-0.1.12 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate trelent-hyok 0.1.12 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate trelent-hyok 0.1.12 [INFO] finished tweaking crates.io crate trelent-hyok 0.1.12 [INFO] tweaked toml for crates.io crate trelent-hyok 0.1.12 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate trelent-hyok 0.1.12 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate trelent-hyok 0.1.12 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded azure_security_keyvault v0.21.0 [INFO] [stderr] Downloaded aws-runtime v1.5.5 [INFO] [stderr] Downloaded aws-types v1.3.5 [INFO] [stderr] Downloaded aws-smithy-types v1.2.13 [INFO] [stderr] Downloaded aws-sigv4 v1.2.8 [INFO] [stderr] Downloaded aws-sdk-sso v1.58.0 [INFO] [stderr] Downloaded aws-sdk-ssooidc v1.59.0 [INFO] [stderr] Downloaded aws-sdk-sts v1.59.0 [INFO] [stderr] Downloaded aws-config v1.5.16 [INFO] [stderr] Downloaded aws-smithy-runtime v1.7.8 [INFO] [stderr] Downloaded aws-sdk-secretsmanager v1.62.0 [INFO] [stderr] Downloaded aws-sdk-kms v1.59.0 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 14ee5b550acb1fb846c3d09783d8dc849e864ac1515e46d12b1b0931d6339677 [INFO] running `Command { std: "docker" "start" "-a" "14ee5b550acb1fb846c3d09783d8dc849e864ac1515e46d12b1b0931d6339677", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "14ee5b550acb1fb846c3d09783d8dc849e864ac1515e46d12b1b0931d6339677", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14ee5b550acb1fb846c3d09783d8dc849e864ac1515e46d12b1b0931d6339677", kill_on_drop: false }` [INFO] [stdout] 14ee5b550acb1fb846c3d09783d8dc849e864ac1515e46d12b1b0931d6339677 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2625c13803c2c8109303599bf7abcf6229ffae18d6d86d25b3ed52147e396faa [INFO] running `Command { std: "docker" "start" "-a" "2625c13803c2c8109303599bf7abcf6229ffae18d6d86d25b3ed52147e396faa", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling mini-moka v0.10.3 [INFO] [stderr] Compiling bytes v1.10.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling crossbeam-channel v0.5.14 [INFO] [stderr] Compiling tagptr v0.2.0 [INFO] [stderr] Compiling triomphe v0.1.14 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling md5 v0.7.0 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling ghash v0.5.1 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling async-trait v0.1.86 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling trelent-hyok v0.1.12 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 28.32s [INFO] running `Command { std: "docker" "inspect" "2625c13803c2c8109303599bf7abcf6229ffae18d6d86d25b3ed52147e396faa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2625c13803c2c8109303599bf7abcf6229ffae18d6d86d25b3ed52147e396faa", kill_on_drop: false }` [INFO] [stdout] 2625c13803c2c8109303599bf7abcf6229ffae18d6d86d25b3ed52147e396faa [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 448c0b9368d216d8baff43006e632a798a79476f07962ed8c864959b8892c312 [INFO] running `Command { std: "docker" "start" "-a" "448c0b9368d216d8baff43006e632a798a79476f07962ed8c864959b8892c312", kill_on_drop: false }` [INFO] [stderr] Compiling trelent-hyok v0.1.12 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.10s [INFO] running `Command { std: "docker" "inspect" "448c0b9368d216d8baff43006e632a798a79476f07962ed8c864959b8892c312", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "448c0b9368d216d8baff43006e632a798a79476f07962ed8c864959b8892c312", kill_on_drop: false }` [INFO] [stdout] 448c0b9368d216d8baff43006e632a798a79476f07962ed8c864959b8892c312 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 31d3c08a195d093935917df735028d03e61cca6b09301d8461c4ae07c35cd17d [INFO] running `Command { std: "docker" "start" "-a" "31d3c08a195d093935917df735028d03e61cca6b09301d8461c4ae07c35cd17d", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.30s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/trelent_hyok-0874234ce570d5fe) [INFO] [stderr] Doc-tests trelent_hyok [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] [stdout] [INFO] [stdout] running 26 tests [INFO] [stdout] test src/dek/generator/mod.rs - dek::generator::DEKGeneratorTrait (line 34) - compile ... FAILED [INFO] [stdout] test src/cmk/custom_cmk.rs - cmk::custom_cmk::CustomCMK::encrypt (line 116) - compile ... FAILED [INFO] [stdout] test src/dek/persistence/mod.rs - dek::persistence::DEKPersistService (line 46) - compile ... FAILED [INFO] [stdout] test src/dek/generator/key_generator/fixed.rs - dek::generator::key_generator::fixed::FixedLengthGenerator (line 35) - compile ... FAILED [INFO] [stdout] test src/builder.rs - builder::HYOKServiceBuilder::with_custom_cache (line 320) - compile ... FAILED [INFO] [stdout] test src/dek/mod.rs - dek::DEK (line 35) - compile ... FAILED [INFO] [stdout] test src/dek/generator/key_generator/custom.rs - dek::generator::key_generator::custom::CustomGenerator (line 34) - compile ... FAILED [INFO] [stdout] test src/dek/persistence/custom_persistence.rs - dek::persistence::custom_persistence::CustomPersister (line 17) - compile ... FAILED [INFO] [stdout] test src/dek/generator/key_generator/mod.rs - dek::generator::key_generator::DEKKeyGenerator (line 37) - compile ... FAILED [INFO] [stdout] test src/cmk/mod.rs - cmk::CMKTrait (line 47) - compile ... FAILED [INFO] [stdout] test src/dek/generator/mod.rs - dek::generator::DEKGenerator (line 78) - compile ... FAILED [INFO] [stdout] test src/builder.rs - builder::HYOKServiceBuilder (line 171) - compile ... FAILED [INFO] [stdout] test src/held_data/encryption/custom.rs - held_data::encryption::custom::CustomStrategy (line 36) - compile ... FAILED [INFO] [stdout] test src/cmk/custom_cmk.rs - cmk::custom_cmk::CustomCMK::decrypt (line 135) - compile ... FAILED [INFO] [stdout] test src/held_data/encryption/mod.rs - held_data::encryption::EncryptionStrategy (line 41) - compile ... FAILED [INFO] [stdout] test src/dek/scope.rs - dek::scope::WithScope (line 24) - compile ... FAILED [INFO] [stdout] test src/dek/persistence/custom_persistence.rs - dek::persistence::custom_persistence::CustomPersister::new (line 74) - compile ... FAILED [INFO] [stdout] test src/held_data/object.rs - held_data::object::ReleaseHeldObject (line 32) - compile ... FAILED [INFO] [stdout] test src/cmk/mod.rs - cmk::CMK (line 122) - compile ... FAILED [INFO] [stdout] test src/dek/persistence/mod.rs - dek::persistence::DEKPersister (line 208) - compile ... FAILED [INFO] [stdout] test src/held_data/value.rs - held_data::value::ReleaseHeldValue (line 65) - compile ... FAILED [INFO] [stdout] test src/cmk/custom_cmk.rs - cmk::custom_cmk::CustomCMK (line 36) - compile ... FAILED [INFO] [stdout] test src/held_data/value.rs - held_data::value::HeldValue (line 22) - compile ... FAILED [INFO] [stdout] test src/dek/persistence/mod.rs - dek::persistence::DEKPersisterTrait (line 153) - compile ... FAILED [INFO] [stdout] test src/held_data/value.rs - held_data::value::Held (line 119) - compile ... FAILED [INFO] [stdout] test src/lib.rs - HYOKService (line 48) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/dek/generator/mod.rs - dek::generator::DEKGeneratorTrait (line 34) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/dek/generator/mod.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hyokashi::{DEKGeneratorTrait, GeneratorError}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/cmk/custom_cmk.rs - cmk::custom_cmk::CustomCMK::encrypt (line 116) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CustomCMK` [INFO] [stdout] --> src/cmk/custom_cmk.rs:117:18 [INFO] [stdout] | [INFO] [stdout] 3 | let custom_cmk = CustomCMK::new(/* ... */); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `CustomCMK` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use trelent_hyok::cmk::CustomCMK; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/cmk/custom_cmk.rs:118:54 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_cmk_custom_cmk_rs_116_0() { [INFO] [stdout] | ---------------------------------------------- this is not `async` [INFO] [stdout] 3 | let custom_cmk = CustomCMK::new(/* ... */); [INFO] [stdout] 4 | let encrypted = custom_cmk.encrypt(vec![0x01, 0x02]).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dek/persistence/mod.rs - dek::persistence::DEKPersistService (line 46) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/dek/persistence/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 4 | use hyokashi::{CMK, DEKPersister, DEKPersistService}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/dek/persistence/mod.rs:57:62 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dek_persistence_mod_rs_46_0() { [INFO] [stdout] | -------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 13 | let stored = service.save_dek("my-key".to_string(), dek).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/dek/persistence/mod.rs:58:61 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dek_persistence_mod_rs_46_0() { [INFO] [stdout] | -------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 14 | let retrieved = service.fetch_dek("my-key".to_string()).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dek/generator/key_generator/fixed.rs - dek::generator::key_generator::fixed::FixedLengthGenerator (line 35) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/dek/generator/key_generator/fixed.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hyokashi::FixedLengthGenerator; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/builder.rs - builder::HYOKServiceBuilder::with_custom_cache (line 320) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/builder.rs:324:13 [INFO] [stdout] | [INFO] [stdout] 6 | let cache = Arc::new(Mutex::new(HashMap::new())); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `builder` in this scope [INFO] [stdout] --> src/builder.rs:327:1 [INFO] [stdout] | [INFO] [stdout] 9 | builder.with_custom_cache( [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dek/mod.rs - dek::DEK (line 35) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/dek/mod.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hyokashi::DEK; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dek/generator/key_generator/custom.rs - dek::generator::key_generator::custom::CustomGenerator (line 34) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/dek/generator/key_generator/custom.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hyokashi::{CustomGenerator, GenerateKeyError}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dek/persistence/custom_persistence.rs - dek::persistence::custom_persistence::CustomPersister (line 17) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/dek/persistence/custom_persistence.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 6 | use hyokashi::{CustomPersister, PersistError}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dek/generator/key_generator/mod.rs - dek::generator::key_generator::DEKKeyGenerator (line 37) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/dek/generator/key_generator/mod.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hyokashi::{DEKKeyGenerator, GenerateKeyError}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/cmk/mod.rs - cmk::CMKTrait (line 47) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/cmk/mod.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 4 | use hyokashi::{CMKTrait, CMKError}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dek/generator/mod.rs - dek::generator::DEKGenerator (line 78) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/dek/generator/mod.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hyokashi::DEKGenerator; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FixedLengthGenerator` [INFO] [stdout] --> src/dek/generator/mod.rs:82:37 [INFO] [stdout] | [INFO] [stdout] 6 | let generator = DEKGenerator::Fixed(FixedLengthGenerator::new(32)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `FixedLengthGenerator` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use trelent_hyok::dek::generator::key_generator::fixed::FixedLengthGenerator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/builder.rs - builder::HYOKServiceBuilder (line 171) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/builder.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hyokashi::HYOKServiceBuilder; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `aws_client` in this scope [INFO] [stdout] --> src/builder.rs:182:31 [INFO] [stdout] | [INFO] [stdout] 13 | .with_aws_persistence(aws_client) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `kms_client` in this scope [INFO] [stdout] --> src/builder.rs:184:13 [INFO] [stdout] | [INFO] [stdout] 15 | kms_client, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `encryption_strategy` in this scope [INFO] [stdout] --> src/builder.rs:188:16 [INFO] [stdout] | [INFO] [stdout] 19 | .build(encryption_strategy)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EncryptionAlgorithmSpec` [INFO] [stdout] --> src/builder.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 17 | EncryptionAlgorithmSpec::RsaesOaepSha256 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `EncryptionAlgorithmSpec` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/held_data/encryption/custom.rs - held_data::encryption::custom::CustomStrategy (line 36) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/held_data/encryption/custom.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hyokashi::{CustomStrategy, EncryptionError, DEK}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/held_data/encryption/custom.rs:62:83 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_held_data_encryption_custom_rs_36_0() { [INFO] [stdout] | ---------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 28 | let encrypted = strategy.encrypt(dek.clone(), data.clone(), metadata.clone()).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/held_data/encryption/custom.rs:63:64 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_held_data_encryption_custom_rs_36_0() { [INFO] [stdout] | ---------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 29 | let decrypted = strategy.decrypt(dek, encrypted, metadata).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/cmk/custom_cmk.rs - cmk::custom_cmk::CustomCMK::decrypt (line 135) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CustomCMK` [INFO] [stdout] --> src/cmk/custom_cmk.rs:136:18 [INFO] [stdout] | [INFO] [stdout] 3 | let custom_cmk = CustomCMK::new(/* ... */); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `CustomCMK` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use trelent_hyok::cmk::CustomCMK; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `encrypted_data` in this scope [INFO] [stdout] --> src/cmk/custom_cmk.rs:137:36 [INFO] [stdout] | [INFO] [stdout] 4 | let decrypted = custom_cmk.decrypt(encrypted_data).await?; [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/cmk/custom_cmk.rs:137:52 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_cmk_custom_cmk_rs_135_0() { [INFO] [stdout] | ---------------------------------------------- this is not `async` [INFO] [stdout] 3 | let custom_cmk = CustomCMK::new(/* ... */); [INFO] [stdout] 4 | let decrypted = custom_cmk.decrypt(encrypted_data).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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] ---- src/held_data/encryption/mod.rs - held_data::encryption::EncryptionStrategy (line 41) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/held_data/encryption/mod.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 4 | use hyokashi::{EncryptionStrategy, DEK, EncryptionError}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dek/scope.rs - dek::scope::WithScope (line 24) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/dek/scope.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hyokashi::WithScope; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dek/persistence/custom_persistence.rs - dek::persistence::custom_persistence::CustomPersister::new (line 74) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PersistError` [INFO] [stdout] --> src/dek/persistence/custom_persistence.rs:100:27 [INFO] [stdout] | [INFO] [stdout] 28 | .ok_or_else(|| PersistError::Error("Key not found".into())) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `PersistError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use trelent_hyok::error::generator::PersistError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CustomPersister` [INFO] [stdout] --> src/dek/persistence/custom_persistence.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 32 | let persister = CustomPersister::new(persist, fetch); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `CustomPersister` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use trelent_hyok::dek::persistence::CustomPersister; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/held_data/object.rs - held_data::object::ReleaseHeldObject (line 32) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/held_data/object.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 4 | use hyokashi::{ReleaseHeldObject, DEK, EncryptionStrategy, EncryptionError}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/cmk/mod.rs - cmk::CMK (line 122) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/cmk/mod.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hyokashi::CMK; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `cmk` in this scope [INFO] [stdout] --> src/cmk/mod.rs:134:21 [INFO] [stdout] | [INFO] [stdout] 14 | let encrypted = cmk.encrypt(vec![1, 2, 3]).await?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `cmk` in this scope [INFO] [stdout] --> src/cmk/mod.rs:135:21 [INFO] [stdout] | [INFO] [stdout] 15 | let decrypted = cmk.decrypt(encrypted).await?; [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/cmk/mod.rs:134:48 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_cmk_mod_rs_122_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 14 | let encrypted = cmk.encrypt(vec![1, 2, 3]).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/cmk/mod.rs:135:44 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_cmk_mod_rs_122_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 15 | let decrypted = cmk.decrypt(encrypted).await?; [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, E0432, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dek/persistence/mod.rs - dek::persistence::DEKPersister (line 208) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/dek/persistence/mod.rs:209:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hyokashi::DEKPersister; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CustomPersister` [INFO] [stdout] --> src/dek/persistence/mod.rs:216:38 [INFO] [stdout] | [INFO] [stdout] 10 | let persister = DEKPersister::Custom(CustomPersister::new(/* ... */)); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `CustomPersister` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use trelent_hyok::dek::persistence::CustomPersister; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/held_data/value.rs - held_data::value::ReleaseHeldValue (line 65) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/held_data/value.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 4 | use hyokashi::{ReleaseHeldValue, EncryptionError}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `EncryptionStrategy` in this scope [INFO] [stdout] --> src/held_data/value.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 13 | S: EncryptionStrategy + Send + Sync, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use trelent_hyok::encryption::EncryptionStrategy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DEK` in this scope [INFO] [stdout] --> src/held_data/value.rs:73:41 [INFO] [stdout] | [INFO] [stdout] 10 | async fn release(&self, dek: DEK, strategy: &S, ed: ED) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use trelent_hyok::dek::DEK; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/cmk/custom_cmk.rs - cmk::custom_cmk::CustomCMK (line 36) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/cmk/custom_cmk.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hyokashi::{CustomCMK, CMKError}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/held_data/value.rs - held_data::value::HeldValue (line 22) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/held_data/value.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hyokashi::{HeldValue, ReleaseHeldValue}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dek` in this scope [INFO] [stdout] --> src/held_data/value.rs:29:39 [INFO] [stdout] | [INFO] [stdout] 9 | let bytes: Vec = held.release(dek.clone(), &strategy, metadata.clone()).await?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `strategy` in this scope [INFO] [stdout] --> src/held_data/value.rs:29:53 [INFO] [stdout] | [INFO] [stdout] 9 | let bytes: Vec = held.release(dek.clone(), &strategy, metadata.clone()).await?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `metadata` in this scope [INFO] [stdout] --> src/held_data/value.rs:29:63 [INFO] [stdout] | [INFO] [stdout] 9 | let bytes: Vec = held.release(dek.clone(), &strategy, metadata.clone()).await?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 2 + use std::fs::metadata; [INFO] [stdout] | [INFO] [stdout] 2 + use std::ptr::metadata; [INFO] [stdout] | [INFO] [stdout] 2 + use core::ptr::metadata; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::fs::metadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dek` in this scope [INFO] [stdout] --> src/held_data/value.rs:30:37 [INFO] [stdout] | [INFO] [stdout] 10 | let text: String = held.release(dek.clone(), &strategy, metadata.clone()).await?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `strategy` in this scope [INFO] [stdout] --> src/held_data/value.rs:30:51 [INFO] [stdout] | [INFO] [stdout] 10 | let text: String = held.release(dek.clone(), &strategy, metadata.clone()).await?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `metadata` in this scope [INFO] [stdout] --> src/held_data/value.rs:30:61 [INFO] [stdout] | [INFO] [stdout] 10 | let text: String = held.release(dek.clone(), &strategy, metadata.clone()).await?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 2 + use std::fs::metadata; [INFO] [stdout] | [INFO] [stdout] 2 + use std::ptr::metadata; [INFO] [stdout] | [INFO] [stdout] 2 + use core::ptr::metadata; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::fs::metadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/held_data/value.rs:29:81 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_held_data_value_rs_22_0() { [INFO] [stdout] | ---------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 9 | let bytes: Vec = held.release(dek.clone(), &strategy, metadata.clone()).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/held_data/value.rs:30:79 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_held_data_value_rs_22_0() { [INFO] [stdout] | ---------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 10 | let text: String = held.release(dek.clone(), &strategy, metadata.clone()).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dek/persistence/mod.rs - dek::persistence::DEKPersisterTrait (line 153) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/dek/persistence/mod.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 4 | use hyokashi::{DEKPersisterTrait, PersistError}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/held_data/value.rs - held_data::value::Held (line 119) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/held_data/value.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hyokashi::Held; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dek` in this scope [INFO] [stdout] --> src/held_data/value.rs:124:27 [INFO] [stdout] | [INFO] [stdout] 7 | let held = Held(data, dek, &strategy, metadata).await?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `strategy` in this scope [INFO] [stdout] --> src/held_data/value.rs:124:33 [INFO] [stdout] | [INFO] [stdout] 7 | let held = Held(data, dek, &strategy, metadata).await?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `metadata` in this scope [INFO] [stdout] --> src/held_data/value.rs:124:43 [INFO] [stdout] | [INFO] [stdout] 7 | let held = Held(data, dek, &strategy, metadata).await?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 2 + use std::fs::metadata; [INFO] [stdout] | [INFO] [stdout] 2 + use std::ptr::metadata; [INFO] [stdout] | [INFO] [stdout] 2 + use core::ptr::metadata; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::fs::metadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - HYOKService (line 48) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `hyokashi` [INFO] [stdout] --> src/lib.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hyokashi::{HYOKServiceBuilder, EncryptionStrategy}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `hyokashi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyokashi`, use `cargo add hyokashi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `kms_client` in this scope [INFO] [stdout] --> src/lib.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 8 | .with_aws_cmk(kms_client, "alias/my-key", algorithm) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `algorithm` in this scope [INFO] [stdout] --> src/lib.rs:54:51 [INFO] [stdout] | [INFO] [stdout] 8 | .with_aws_cmk(kms_client, "alias/my-key", algorithm) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `secrets_client` in this scope [INFO] [stdout] --> src/lib.rs:55:31 [INFO] [stdout] | [INFO] [stdout] 9 | .with_aws_persistence(secrets_client) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `encryption_strategy` in this scope [INFO] [stdout] --> src/lib.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 10 | .build(encryption_strategy)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `data` in this scope [INFO] [stdout] --> src/lib.rs:59:35 [INFO] [stdout] | [INFO] [stdout] 13 | let held = service.hold_value(data, "my-scope".into(), metadata).await?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `metadata` in this scope [INFO] [stdout] --> src/lib.rs:59:60 [INFO] [stdout] | [INFO] [stdout] 13 | let held = service.hold_value(data, "my-scope".into(), metadata).await?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 2 + use std::fs::metadata; [INFO] [stdout] | [INFO] [stdout] 2 + use std::ptr::metadata; [INFO] [stdout] | [INFO] [stdout] 2 + use core::ptr::metadata; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::fs::metadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `metadata` in this scope [INFO] [stdout] --> src/lib.rs:62:64 [INFO] [stdout] | [INFO] [stdout] 16 | let plain = service.release_value(held, "my-scope".into(), metadata).await?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 2 + use std::fs::metadata; [INFO] [stdout] | [INFO] [stdout] 2 + use std::ptr::metadata; [INFO] [stdout] | [INFO] [stdout] 2 + use core::ptr::metadata; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::fs::metadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:59:70 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_48_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 13 | let held = service.hold_value(data, "my-scope".into(), metadata).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:62:74 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_48_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 16 | let plain = service.release_value(held, "my-scope".into(), metadata).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, 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/builder.rs - builder::HYOKServiceBuilder (line 171) [INFO] [stdout] src/builder.rs - builder::HYOKServiceBuilder::with_custom_cache (line 320) [INFO] [stdout] src/cmk/custom_cmk.rs - cmk::custom_cmk::CustomCMK (line 36) [INFO] [stdout] src/cmk/custom_cmk.rs - cmk::custom_cmk::CustomCMK::decrypt (line 135) [INFO] [stdout] src/cmk/custom_cmk.rs - cmk::custom_cmk::CustomCMK::encrypt (line 116) [INFO] [stdout] src/cmk/mod.rs - cmk::CMK (line 122) [INFO] [stdout] src/cmk/mod.rs - cmk::CMKTrait (line 47) [INFO] [stdout] src/dek/generator/key_generator/custom.rs - dek::generator::key_generator::custom::CustomGenerator (line 34) [INFO] [stdout] src/dek/generator/key_generator/fixed.rs - dek::generator::key_generator::fixed::FixedLengthGenerator (line 35) [INFO] [stdout] src/dek/generator/key_generator/mod.rs - dek::generator::key_generator::DEKKeyGenerator (line 37) [INFO] [stdout] src/dek/generator/mod.rs - dek::generator::DEKGenerator (line 78) [INFO] [stdout] src/dek/generator/mod.rs - dek::generator::DEKGeneratorTrait (line 34) [INFO] [stdout] src/dek/mod.rs - dek::DEK (line 35) [INFO] [stdout] src/dek/persistence/custom_persistence.rs - dek::persistence::custom_persistence::CustomPersister (line 17) [INFO] [stdout] src/dek/persistence/custom_persistence.rs - dek::persistence::custom_persistence::CustomPersister::new (line 74) [INFO] [stdout] src/dek/persistence/mod.rs - dek::persistence::DEKPersistService (line 46) [INFO] [stdout] src/dek/persistence/mod.rs - dek::persistence::DEKPersister (line 208) [INFO] [stdout] src/dek/persistence/mod.rs - dek::persistence::DEKPersisterTrait (line 153) [INFO] [stdout] src/dek/scope.rs - dek::scope::WithScope (line 24) [INFO] [stdout] src/held_data/encryption/custom.rs - held_data::encryption::custom::CustomStrategy (line 36) [INFO] [stdout] src/held_data/encryption/mod.rs - held_data::encryption::EncryptionStrategy (line 41) [INFO] [stdout] src/held_data/object.rs - held_data::object::ReleaseHeldObject (line 32) [INFO] [stdout] src/held_data/value.rs - held_data::value::Held (line 119) [INFO] [stdout] src/held_data/value.rs - held_data::value::HeldValue (line 22) [INFO] [stdout] src/held_data/value.rs - held_data::value::ReleaseHeldValue (line 65) [INFO] [stdout] src/lib.rs - HYOKService (line 48) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 26 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.09s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "31d3c08a195d093935917df735028d03e61cca6b09301d8461c4ae07c35cd17d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31d3c08a195d093935917df735028d03e61cca6b09301d8461c4ae07c35cd17d", kill_on_drop: false }` [INFO] [stdout] 31d3c08a195d093935917df735028d03e61cca6b09301d8461c4ae07c35cd17d