Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
targets: wasm32-unknown-unknown
components: rust-src
- uses: arduino/setup-task@v1
with:
repo-token: ${{ github.token }}
Expand Down
9 changes: 8 additions & 1 deletion src/langs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,14 @@ fn build_rust_inner(config: &Config, example: bool) -> anyhow::Result<()> {
bail!("cannot convert project directory name to UTF-8")
};
let in_path = path_to_utf8(&config.root_path)?;
let mut cmd_args = vec!["build", "--target", "wasm32-unknown-unknown", "--release"];
let mut cmd_args = vec![
"+nightly",
"build",
"-Zbuild-std=std",
"--target",
"wasm32-unknown-unknown",
"--release",
];
if example {
cmd_args.push("--example");
cmd_args.push(example_name);
Expand Down