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: bump rust toolchain edition to 2021 #180

Merged
merged 7 commits into from
Aug 9, 2022

Conversation

waynexia
Copy link
Member

@waynexia waynexia commented Aug 9, 2022

Signed-off-by: Ruihang Xia waynestxia@gmail.com

Which issue does this PR close?

Closes #143

Rationale for this change

Some of our crates (like client-rs) have bumped to edition 2021.

Besides that, I want to default to "resolver 2" for conditionally enable feature gate for dev-dependencies (https://doc.rust-lang.org/cargo/reference/resolver.html#feature-resolver-version-2)

What changes are included in this PR?

bump edition for all sub-crates.

Are there any user-facing changes?

no

How does this change test

I can build and run all test after this change.

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Cargo.toml Show resolved Hide resolved
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Copy link
Contributor

@jiacai2050 jiacai2050 left a comment

Choose a reason for hiding this comment

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

🚀

@jiacai2050 jiacai2050 merged commit 653d279 into apache:main Aug 9, 2022
@waynexia waynexia deleted the bump-edition-2021 branch August 10, 2022 02:26
chunshao90 pushed a commit to chunshao90/ceresdb that referenced this pull request May 15, 2023
* chore: bump rust toolchain edition to 2021

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* remove per crate edition

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* bump toolchain to nightly-2022-08-08

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* Revert "remove per crate edition"

This reverts commit 8dee2d6.

* use workspace edition setting

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* also set edition for table_kv component

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* make clippy happy

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
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.

Upgrade rust edition to 2021
2 participants