-
Notifications
You must be signed in to change notification settings - Fork 20
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
Merge forks, medium term goals and the future of the library #8
Comments
Thank you for reaching out with the offer and I agree that it would be better to join our effort. There're three reasons why I forked the library:
I was also thinking about a procedural macro but haven't got time to address this as I am still in the process of cleaning up and adding tests to the existing APIs. A procedural macro will not only result in a small codebase but also:
However, I kind of prefer to keep the existing runtime-parsing API as there might be cases where it's easier to generate style at runtime based on different conditions. As for the hooks, I think they probably need to be in a different crate until function component becomes stable. Also, do you think it's better to create an organization and transfer the repository there? |
With a macro-style crate, I'd think the easiest dependency structure would be
Anyone interested in the runtime API would then import either stylist-core directly or toggle a feature in stylist.
True that, I'm not 100% sure if one can have a feature that turns on some kind of yew@next integration and how that interacts with crates.io (no git dependencies allowed).
At some point yeah, in the mean time keeping it here is fine too, I'm fine with it just being a PR. |
What would be your preferred syntax for the proc-macro? Since I mentioned about having both runtime API and proc-macros, it would be nice to have both API to use the same parser so less effort to maintain in the long run. I guess it might be better for the proc-macro to take a string literal as style input? I also fine with other syntaxes as well if it looks nicer than string literals. |
Let's manage this in #23 and close this issue as other goals are fulfilled. |
While maintaining my own fork of css-in-rust I noticed that you are also kinda active catching up to yew etc. I believe it could be beneficial to combine our efforts so to say.
My plans with the library were the following:
Let me know what you think about that and if I should spend the effort to get a PR going.
The text was updated successfully, but these errors were encountered: