Stream: git-wasmtime

Topic: wasmtime / issue #6670 wasmtime bench-api build error whe...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 29 2023 at 13:52):

stevedoyle labeled issue #6670:

Test Case

Build error when building the wasmtime-bench-api package and including the wasi-crypto feature.

Steps to Reproduce

cd wasmtime
cargo build --release -p wasmtime-bench-api --features wasi-crypto

Expected Results

Successful build

Actual Results

Build error:

   Compiling wasmtime-bench-api v11.0.0 (/home/sdp/wasmtime/crates/bench-api)
error[E0433]: failed to resolve: could not find `WasiCryptoCtx` in `wasmtime_wasi_nn`
   --> crates/bench-api/src/lib.rs:521:44
    |
521 |             wasi_crypto: wasmtime_wasi_nn::WasiCryptoCtx::new(),
    |                                            ^^^^^^^^^^^^^ could not find `WasiCryptoCtx` in `wasmtime_wasi_nn`
    |
help: consider importing this struct
    |
138 + use wasmtime_wasi_crypto::WasiCryptoCtx;
    |
help: if you import `WasiCryptoCtx`, refer to it directly
    |
521 -             wasi_crypto: wasmtime_wasi_nn::WasiCryptoCtx::new(),
521 +             wasi_crypto: WasiCryptoCtx::new(),
    |

For more information about this error, try `rustc --explain E0433`.
error: could not compile `wasmtime-bench-api` (lib) due to previous error

Versions and Environment

Wasmtime version or commit: v10.0.1

Operating system: Linux, Ubuntu

Extra Info

view this post on Zulip Wasmtime GitHub notifications bot (Jun 29 2023 at 13:52):

stevedoyle opened issue #6670:

Test Case

Build error when building the wasmtime-bench-api package and including the wasi-crypto feature.

Steps to Reproduce

cd wasmtime
cargo build --release -p wasmtime-bench-api --features wasi-crypto

Expected Results

Successful build

Actual Results

Build error:

   Compiling wasmtime-bench-api v11.0.0 (/home/sdp/wasmtime/crates/bench-api)
error[E0433]: failed to resolve: could not find `WasiCryptoCtx` in `wasmtime_wasi_nn`
   --> crates/bench-api/src/lib.rs:521:44
    |
521 |             wasi_crypto: wasmtime_wasi_nn::WasiCryptoCtx::new(),
    |                                            ^^^^^^^^^^^^^ could not find `WasiCryptoCtx` in `wasmtime_wasi_nn`
    |
help: consider importing this struct
    |
138 + use wasmtime_wasi_crypto::WasiCryptoCtx;
    |
help: if you import `WasiCryptoCtx`, refer to it directly
    |
521 -             wasi_crypto: wasmtime_wasi_nn::WasiCryptoCtx::new(),
521 +             wasi_crypto: WasiCryptoCtx::new(),
    |

For more information about this error, try `rustc --explain E0433`.
error: could not compile `wasmtime-bench-api` (lib) due to previous error

Versions and Environment

Wasmtime version or commit: v10.0.1

Operating system: Linux, Ubuntu

Extra Info

view this post on Zulip Wasmtime GitHub notifications bot (Jun 29 2023 at 15:58):

stevedoyle closed issue #6670:

Test Case

Build error when building the wasmtime-bench-api package and including the wasi-crypto feature.

Steps to Reproduce

cd wasmtime
cargo build --release -p wasmtime-bench-api --features wasi-crypto

Expected Results

Successful build

Actual Results

Build error:

   Compiling wasmtime-bench-api v11.0.0 (/home/sdp/wasmtime/crates/bench-api)
error[E0433]: failed to resolve: could not find `WasiCryptoCtx` in `wasmtime_wasi_nn`
   --> crates/bench-api/src/lib.rs:521:44
    |
521 |             wasi_crypto: wasmtime_wasi_nn::WasiCryptoCtx::new(),
    |                                            ^^^^^^^^^^^^^ could not find `WasiCryptoCtx` in `wasmtime_wasi_nn`
    |
help: consider importing this struct
    |
138 + use wasmtime_wasi_crypto::WasiCryptoCtx;
    |
help: if you import `WasiCryptoCtx`, refer to it directly
    |
521 -             wasi_crypto: wasmtime_wasi_nn::WasiCryptoCtx::new(),
521 +             wasi_crypto: WasiCryptoCtx::new(),
    |

For more information about this error, try `rustc --explain E0433`.
error: could not compile `wasmtime-bench-api` (lib) due to previous error

Versions and Environment

Wasmtime version or commit: v10.0.1

Operating system: Linux, Ubuntu

Extra Info


Last updated: Dec 23 2024 at 12:05 UTC