Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
STRRL opened this issue Apr 26, 2024 · 2 comments

Comments

@STRRL
Copy link

STRRL commented Apr 26, 2024

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.

cli/src/lib/rust.ts

Lines 102 to 120 in 7605eae

if (!(await hasRequiredRustTarget())) {
await execPromise({
command: RUSTUP,
args: ["target", "add", RUST_WASM32_WASI_TARGET],
spinnerMessage: `Adding ${color.yellow(
RUST_WASM32_WASI_TARGET,
)} rust target`,
printOutput: true,
});
if (!(await hasRequiredRustTarget())) {
commandObj.error(
`Not able to install ${color.yellow(
RUST_WASM32_WASI_TARGET,
)} rust target`,
);
}
}
};

@STRRL
Copy link
Author

STRRL commented Apr 26, 2024

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

@STRRL
Copy link
Author

STRRL commented Apr 26, 2024

how do you think about it?

I am glad to open a PR to address it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant