Skip to content

Conversation

@chrislearn
Copy link
Contributor

No description provided.

@haixuanTao
Copy link
Collaborator

Looks good to me, thanks!

@haixuanTao haixuanTao merged commit b85880a into dora-rs:main Jul 17, 2025
174 of 176 checks passed
@phil-opp
Copy link
Collaborator

I don't think that rust/cargo ensures that the crate actually compiles with the specified rust-version. For example, try using a method such as https://doc.rust-lang.org/stable/std/collections/struct.HashMap.html#method.extract_if which was stabilized in 1.88. No errors or warnings happen for me.

So it's probably good to keep the rust-toolchain.toml in place, in addition to specifying the rust-version.

@chrislearn
Copy link
Contributor Author

I don't think that rust/cargo ensures that the crate actually compiles with the specified rust-version. For example, try using a method such as https://doc.rust-lang.org/stable/std/collections/struct.HashMap.html#method.extract_if which was stabilized in 1.88. No errors or warnings happen for me.

So it's probably good to keep the rust-toolchain.toml in place, in addition to specifying the rust-version.

Or can we use github ci to make sure the minimum version of rust can be compiled normally?

@phil-opp
Copy link
Collaborator

I'm also fine with that. What do you think, @haixuanTao ?

@haixuanTao
Copy link
Collaborator

I didn't know that this did not work as expected.

what does it do then?

I was under the impression that it could be neat to be able to switch between rust version between nodes.

@chrislearn
Copy link
Contributor Author

I found a discussion about this:
dani-garcia/vaultwarden#3907

According to the official document (https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file):

Some projects find themselves ‘pinned’ to a specific release of Rust and want this information reflected in their source repository. This is most often the case for nightly-only software that pins to a revision from the release archives.

@chrislearn
Copy link
Contributor Author

I tend to remove rust-toolchain.toml, and then we can change the test version in github actions to the minimum version supported by dora. Under normal circumstances, if the minimum version passes the test, all rust versions higher than this version should pass.

I also looked at the official rust project,
https://github.com/rust-lang/cargo It does not add rust-toolchain.toml, and sets the minimum supported version through rust-version.
https://github.com/rust-lang/crates.io/ It adds rust-toolchain.toml without setting rust-version in Cargo.toml.

@phil-opp
Copy link
Collaborator

@phil-opp phil-opp mentioned this pull request Jul 30, 2025
@phil-opp
Copy link
Collaborator

I opened #1094 to add a msvr CI job

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.

3 participants