Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Oct 9, 2025

This PR adds a rust-toolchain.toml file to specify Rust 1.90 as the stable toolchain version for the Wassette project, ensuring consistent Rust versions across all development environments and CI/CD pipelines.

Problem

Previously, the project did not have a rust-toolchain.toml file, which meant developers could potentially use different Rust versions, leading to inconsistent behavior and potential compatibility issues.

Solution

Added rust-toolchain.toml with the following configuration:

  • Channel: Rust 1.90 (current stable version)
  • Components: rustfmt and clippy for code formatting and linting
  • Targets: wasm32-wasip2 and wasm32-wasip1 for WebAssembly compilation

This ensures that:

  1. All developers and CI systems use the same Rust version
  2. Required components are automatically installed
  3. WASM targets needed for building components are available

Verification

All build, lint, and format checks pass successfully:

  • cargo build --workspace - compiles successfully
  • cargo clippy --workspace - no warnings
  • cargo +nightly fmt --all -- --check - formatting is correct
  • ✅ Toolchain is correctly recognized by rustup with directory override

The configuration aligns with the existing flake.nix setup, which uses similar targets for WebAssembly compilation.

Original prompt

Add rust-toolchain.toml to rust 1.90 the up-to-date stable version and make sure build still works


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

[toolchain]
channel = "1.90"
components = ["rustfmt", "clippy"]
targets = ["wasm32-wasip2", "wasm32-wasip1", "wasm32-unknown-unknown"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wasm32-unknown-unknown is not needed @copilot

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed wasm32-unknown-unknown target in commit 9c87f47.


### Prerequisites
- Rust toolchain (1.75.0 or later)
- Rust toolchain (1.90.0 or later)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this needs to be changed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted the version change in commit 9c87f47.

Before you begin, ensure you have the following installed:

1. **Rust toolchain** (1.75.0 or later):
1. **Rust toolchain** (1.90.0 or later):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted the version change in commit 9c87f47.

@Copilot Copilot AI changed the title [WIP] Add rust-toolchain.toml for stable Rust 1.90 Add rust-toolchain.toml with Rust 1.90 and update documentation Oct 9, 2025
@Copilot Copilot AI requested a review from Mossaka October 9, 2025 07:39
Copilot finished work on behalf of Mossaka October 9, 2025 07:39
@Copilot Copilot AI changed the title Add rust-toolchain.toml with Rust 1.90 and update documentation Add rust-toolchain.toml with Rust 1.90 Oct 9, 2025
Copilot finished work on behalf of Mossaka October 9, 2025 07:45
@Mossaka Mossaka marked this pull request as ready for review October 9, 2025 08:18
@Mossaka Mossaka force-pushed the copilot/add-rust-toolchain-file branch from 23d99ce to 14a9bc3 Compare October 9, 2025 08:18
@Mossaka Mossaka merged commit f8c7962 into main Oct 9, 2025
15 checks passed
@Mossaka Mossaka deleted the copilot/add-rust-toolchain-file branch October 9, 2025 19:23
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

Successfully merging this pull request may close these issues.

2 participants