Build the following: {INSERT GOAL HERE}
You are to create a monorepo with the following structure:
javascript/(package-name) (if using JavaScript/TypeScript)
rust/(crate-name) (if using Rust)
go/(module-name) (if using Go)
| #!/bin/zsh | |
| # Rustup doesn't have an easy "system-wide" approach to installation since it | |
| # requires $CARGO_HOME for locating the binary folder. Here, we define | |
| # `system-wide` as requiring `sudo-only` permission, i.e. `rustup install | |
| # toolchain ...` breaks without `sudo`. | |
| # | |
| # The trick is thus to somehow "envelope" Rustup in another script so that it | |
| # uses a "system-wide" cargo home instead of the default one whenever it's | |
| # called. |