-
Notifications
You must be signed in to change notification settings - Fork 26
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
Make rustywind available as library #95
Comments
@bram209 this has been a plan of mine, I just have not had the time to do it. But its separated out decently, if you wanted to try and move it to a lib.rs, I will publish it as a library to crates. |
Hi, I could take this on if no one else wants to (I would love to have Also, can the |
@Rolv-Apneseth the process would be to change it to a cargo workspace with two packages, The |
Cool, thanks, I'll do that |
@Rolv-Apneseth I already started doing this a while back, but didn't have time to wrap it up. @praveenperera I decided to split it in three different crates Things that still need to be done:
but feel free to start from scratch or organize things differently of course : ) |
Oh nice. Yeah idm either way, up to @praveenperera but very useful as a reference regardless, thanks. Both of these tools are great, thank you both. |
Splitting it into 3 crates is a good idea. @Rolv-Apneseth it probably makes sense to continue from @bram209's branch. |
This exactly what I was hoping to achieve as well! 🎉Let me know how it goes! I would be happy to help out if need be :) |
Sure yeah, if you have any thoughts on that PR that would be appreciated |
Thanks @bram209 and @Rolv-Apneseth would be great to use this with dioxus too! |
This can be closed I guess? @praveenperera Libraries linked in this comment for anyone that wasn't following the PR |
Closed by #100 |
I maintain a formatter for the rust
leptos
framework and would like to userustywind
as a library (mainly this function: https://github.com/avencera/rustywind/blob/fe487da5ceecd5c0d2377796b063d53addf799e4/src/sorter.rs#L34C11-L34C67)Would you be willing to add a
lib.rs
next to themain.rs
, so that your binary imports from the library instead? This way I can include tailwind class sorting seamlessly in my project (without having to go through the hassle of spawning a new process that calls the CLI).The text was updated successfully, but these errors were encountered: