Installing Rust toolchain during pages build
Hi I am using a Rust module compiled to WASM in my Pages project. Since Rust isn't supported natively I have the following script to install it during
postinstall
While it works most of the time, invoking the cargo-component build step gives me an error sh: 1: cargo: not found
.
I guess this is because the current shell session is not configured correctly. I tried doing it manually with by invoking source $HOME/.cargo/env
but the build environment does not seem to have access to the source command... /bin/sh: 1: source: not found
.
Now I'm looking for a way to configure the current shell to have access to the rust toolchain commands.
Rust install script:
0 Replies