Skip to content

Failing to build cross-gem needing latest Rust version/edition #61

@cretz

Description

@cretz

I have a cross-gem run that is failing with:

error[E0658]: `let` expressions in this position are unstable
   --> ext/sdk-core/core-api/src/worker.rs:226:12
    |
226 |         if let Some(Some(ref x)) = self.max_worker_activities_per_second
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information

A regular bundle exec rake compile works just fine. Can see the PR (and failing checks) at temporalio/sdk-ruby#305 where I have tried various things to fix this including setting edition to 2024 and trying to use a .cargo/config.toml file and setting pre-script: rustup update stable as an option. I can re-run the failing CI checks if the logs are no longer available as of this writing.

What is the best way to make sure that cross-gem action uses latest stable Rust? Is this supported and/or am I doing something incorrect?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions