-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I have a small problem with getting the code to run, following the repository and blog post. I think this probably due to changes in rust and its supported wasm targets. It seems wasm32-wasi is no longer a valid target but wasm32-wasip1 now is.
When I do the golem build app step I currently get:
Collecting sources
Found sources: /Users/markusklink/Projects/moon/golem-moonbit-example/archive/golem.yaml, /Users/markusklink/Projects/moon/golem-moonbit-example/email/golem.yaml, /Users/markusklink/Projects/moon/golem-moonbit-example/golem.yaml, /Users/markusklink/Projects/moon/golem-moonbit-example/list/golem.yaml
Collecting components
Found components: archive, email, list
Resolving application wit directories
Resolving component wit dirs for archive (/Users/markusklink/Projects/moon/golem-moonbit-example/archive/wit, /Users/markusklink/Projects/moon/golem-moonbit-example/archive/wit-generated)
Resolving component wit dirs for email (/Users/markusklink/Projects/moon/golem-moonbit-example/email/wit, /Users/markusklink/Projects/moon/golem-moonbit-example/email/wit-generated)
Resolving component wit dirs for list (/Users/markusklink/Projects/moon/golem-moonbit-example/list/wit, /Users/markusklink/Projects/moon/golem-moonbit-example/list/wit-generated)
Selecting profiles, no profile was requested
Selected default profile release for archive using template moonbit
Selected default profile release for email using template moonbit
Selected default profile release for list using template moonbit
Generating RPC artifacts
Skipping creating generated base wit directory for archive, UP-TO-DATE
Skipping creating generated base wit directory for email, UP-TO-DATE
Skipping creating generated base wit directory for list, UP-TO-DATE
Building wasm rpc stub for archive
Deleting stub temp build dir target/golem-temp/stub/archive/temp-build
Creating stub temp build dir target/golem-temp/stub/archive/temp-build
Generating stub WIT directory to target/golem-temp/stub/archive/temp-build
Generating stub WIT to target/golem-temp/stub/archive/temp-build/wit/stub.wit
Adding WIT dependencies from target/golem-temp/generated-base-wit/archive to target/golem-temp/stub/archive/temp-build
Skipping package dependency wasi:logging
Copying package dependency demo:archive-interface
Copying target/golem-temp/generated-base-wit/archive/deps/demo_archive-interface/interface.wit to target/golem-temp/stub/archive/temp-build/wit/deps/demo_archive-interface/interface.wit
Skipping package dependency demo:archive
Writing wasm-rpc.wit to target/golem-temp/stub/archive/temp-build/wit/deps/wasm-rpc
Writing poll.wit to target/golem-temp/stub/archive/temp-build/wit/deps/io
Generating Cargo.toml to target/golem-temp/stub/archive/temp-build/Cargo.toml
Generating stub source to target/golem-temp/stub/archive/temp-build/src/lib.rs
Generating bindings for archive-stub (src/bindings.rs)
Failed to compile the generated stub: failed to find the `wasm32-wasi` target and `rustup` is not available.
If you're using rustup make sure that it's correctly installed; if not, make sure to install the `wasm32-wasi` target
before using this command
Getting the target list produces
rustup target list | ack "wasm32" [15:20:06]
wasm32-unknown-emscripten
wasm32-unknown-unknown
wasm32-wasip1 (installed)
wasm32-wasip1-threads
wasm32-wasip2
wasm32v1-none
I am uncertain if I am on the right track and how I can update the source to use the new target. Can you provide some insight?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels