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

chore: upgrade to rust 1.58.1 #13459

Merged
merged 6 commits into from
Jan 23, 2022
Merged

Conversation

littledivy
Copy link
Member

@littledivy littledivy commented Jan 21, 2022

Due to Race condition in std::fs::remove_dir_all

Also adds a rust-toolchain

rust-toolchain Outdated
@@ -0,0 +1 @@
1.58.1
Copy link
Member

Choose a reason for hiding this comment

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

What's this file?

Copy link
Member

Choose a reason for hiding this comment

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

It will cause cargo to always build on 1.58.1

rust-toolchain Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@@ -0,0 +1,2 @@
[toolchain]
channel = "1.58.1"
Copy link
Member

Choose a reason for hiding this comment

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

Is this necessary? all these random root level files are fairly annoying.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's just to make sure local builds (like Apple M1) happen from the same toolchain.

Copy link
Member

Choose a reason for hiding this comment

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

It will prevent time spent on these scenarios: https://discord.com/channels/684898665143206084/684911491035430919/931238729841016902

And as @littledivy mentioned in discord, it will also ensure anyone doing an M1 build builds with the correct rust version. I think it's worth it, but do agree it's a little annoying to have yet another file in the root.

Copy link
Member

Choose a reason for hiding this comment

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

It's just to make sure local builds (like Apple M1) happen from the same toolchain.

Is there an alternative?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

It's a shame it seems like rust-toolchain.toml is not respected in the .cargo directory.

Copy link
Member

@dsherret dsherret Jan 21, 2022

Choose a reason for hiding this comment

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

Also, it's nice to have a single source of truth for our rust version after this PR (if we have this file)

.devcontainer/Dockerfile Outdated Show resolved Hide resolved
Copy link
Contributor

@bnoordhuis bnoordhuis left a comment

Choose a reason for hiding this comment

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

LGTM. Switching to rust-toolchain.toml is a good idea.

@littledivy littledivy merged commit 3959d9f into denoland:main Jan 23, 2022
@littledivy littledivy deleted the rust_1.58.1 branch January 23, 2022 17:06
bartlomieju pushed a commit that referenced this pull request Jan 27, 2022
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.

None yet

5 participants