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

Use weak features for preserve_order #460

Merged
merged 1 commit into from
Sep 26, 2023
Merged

Conversation

sunshowers
Copy link
Contributor

Currently, preserve_order causes the toml, serde_json and ron dependencies to be enabled. This can be avoided by using cargo's support for weak features.

Weak features were stabilized in Rust 1.60 so there are no MSRV concerns.

I think this probably is a breaking change since it's possible some downstream users weren't enabling support explicitly.

Copy link
Member

@matthiasbeyer matthiasbeyer left a comment

Choose a reason for hiding this comment

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

I like it!

I agree that this is a breaking change, but I don't think that's too much of an issue as we're in 0.y.z anyways, so that'll only cause a y+1 release!

Thanks for your contribution!

@matthiasbeyer
Copy link
Member

Unfortunately, CI fails because your commit needs signoff. Please:

git commit --amend --signoff && git push <your remote> weak --force

to fix this.

Currently, `preserve_order` causes the toml, serde_json and ron
dependencies to be enabled. This can be avoided by using cargo's support
for [weak features].

[weak features]:
https://rust-lang.github.io/rfcs/3143-cargo-weak-namespaced-features.html

Weak features were stabilized in Rust 1.60 so there are no MSRV
concerns.

I think this probably is a breaking change since it's possible some
downstream users weren't enabling support explicitly.

Signed-off-by: Rain <rain@sunshowers.io>
@sunshowers
Copy link
Contributor Author

@matthiasbeyer done, thanks!

@matthiasbeyer matthiasbeyer merged commit 18737aa into rust-cli:master Sep 26, 2023
15 checks passed
@sunshowers sunshowers deleted the weak branch September 26, 2023 16:13
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.

2 participants