fluencelabs / cli

CLI tool to help develop services for Fluence
GNU Affero General Public License v3.0
138 stars 36 forks source link

failed on following the "Getting Started" docs because `wasm32-wasi` is not installed automatically. #915

Open STRRL opened 4 months ago

STRRL commented 4 months ago

Hi team!

I am exploring the fluence and trying to build my first application on it.

I followed this doc: https://fluence.dev/docs/build/overview/getting_started

I get lots of build errors because I already get rust setup up on my machine but wasm32-wasi support is not installed by default.

I saw some codes to setup rust but I think maybe my situation is not covered.

https://github.com/fluencelabs/cli/blob/7605eae0960a2b446433b205035cd124f43168e9/src/lib/rust.ts#L102-L120

STRRL commented 4 months ago

or append target = "wasm32-wasi" in Cargo.toml would also resolve this issue.

STRRL commented 4 months ago

how do you think about it?

I am glad to open a PR to address it.