-
Notifications
You must be signed in to change notification settings - Fork 42
Add rust-toolchain.toml with Rust 1.90 #371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
rust-toolchain.toml
Outdated
[toolchain] | ||
channel = "1.90" | ||
components = ["rustfmt", "clippy"] | ||
targets = ["wasm32-wasip2", "wasm32-wasip1", "wasm32-unknown-unknown"] |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
docs/cookbook/rust.md
Outdated
|
||
### Prerequisites | ||
- Rust toolchain (1.75.0 or later) | ||
- Rust toolchain (1.90.0 or later) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
docs/development/rust.md
Outdated
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): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment as above
There was a problem hiding this comment.
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.
Co-authored-by: Mossaka <[email protected]>
Co-authored-by: Mossaka <[email protected]>
23d99ce
to
14a9bc3
Compare
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:rustfmt
andclippy
for code formatting and lintingwasm32-wasip2
andwasm32-wasip1
for WebAssembly compilationThis ensures that:
Verification
All build, lint, and format checks pass successfully:
cargo build --workspace
- compiles successfullycargo clippy --workspace
- no warningscargo +nightly fmt --all -- --check
- formatting is correctThe configuration aligns with the existing
flake.nix
setup, which uses similar targets for WebAssembly compilation.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.