Since Tailwind v4 is written in Rust, can a there be an official Tailwind library on crates.io? #16191
Closed
SleeplessOne1917
started this conversation in
Ideas
Replies: 2 comments
-
Rust is used only for some code paths that are slower in JavaScript. Otherwise, the project is still mainly JavaScript-based so it doesn't make sense as a Rust package. |
Beta Was this translation helpful? Give feedback.
0 replies
-
That makes sense. Thank you for your timely reply. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While I'm not at all familiar with Tailwind CSS's codebase, the fact that the v4 engine is written in Rust means that, at least in theory, the Tailwind maintainers could make a crate exposing some functionality that can be used to run Tailwind's engine in other Rust crates. In practice, I'm not sure how much work it would take to use what already exists to make such a library.
At the very least I could see a function exposed that takes the path to a CSS file and directory to look for sources in and spits out the generated CSS (along with any neccessary structs, enums, or traits).
Is this something any of the maintainers or other users of Tailwind are interested in?
Beta Was this translation helpful? Give feedback.
All reactions