Skip to content
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

Move rust-toolchain.toml to root dir #1161

Merged
merged 2 commits into from
Jan 10, 2024
Merged

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Jan 10, 2024

What

Move rust-toolchain.toml to root dir.

Why

The file should live at the top of the rust workspace, which is the root directory of the repository.

The file is currently living inside the soroban-cli directory because the repository used to be only the soroban-cli. It's likely we didn't intend to leave it in a sub-directory and it's current location is accidental.

By moving it to the root it'll inform Rust tooling and IDEs which toolchain to use, and what target and components need to be installed for developing in the repo.

It's channel is set to stable which means that development and builds during release will happen with the latest stable. This is fine. As of #1159 we always test with both the minimum supported rust version (msrv) and the latest stable version, so any release we do should have been tested prior with the same version.

Note that some applications we have, like stellar-core, build and release with a fixed and specific version of stellar-core. That's so that we retain complete control over what version of Rust gets used. But for software less critically impacted by a possible divergence in behavior can keep using stable. Soroban RPC does embed soroban-env and so there's some risk of divergence, but I don't think it's something we should mitigate by pinning here. Instead we should rely on testing as much as possible to identify problems, and if the tests miss something a divergence in soroban-rpc's preflight logic would have minimal impact compared to the same in stellar-core.

Close stellar/rs-soroban-env#1311

@leighmcculloch leighmcculloch enabled auto-merge (squash) January 10, 2024 21:13
@leighmcculloch leighmcculloch merged commit 54f1dc0 into main Jan 10, 2024
25 checks passed
@leighmcculloch leighmcculloch deleted the rs-soroban-env#1311-2 branch January 10, 2024 21:27
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.

Updating rust-version going forward
2 participants