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

Consider releasing version_sort as a standalone crate #6477

Open
EFanZh opened this issue Feb 13, 2025 · 1 comment
Open

Consider releasing version_sort as a standalone crate #6477

EFanZh opened this issue Feb 13, 2025 · 1 comment

Comments

@EFanZh
Copy link

EFanZh commented Feb 13, 2025

I think the comparing algorithm in https://github.com/rust-lang/rustfmt/blob/master/src/sort.rs is a very useful, is it possible to release it as a standalone crate so that it can be reused by other projects?

@EFanZh EFanZh changed the title Consider release version_sort as a standalone crate Consider releasing version_sort as a standalone crate Feb 13, 2025
@ytmimi
Copy link
Contributor

ytmimi commented Feb 13, 2025

I need to think on this. It's not something that we originally intended to do, and I don't know if there's much appetite for a member of the rustfmt team to maintain this as a standalone crate. It might be easier to just vendor the code with the appropriate attribution and create a standalone crate yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants