carloskiki / leptos-icons

An icon library for the leptos web framework
MIT License
95 stars 22 forks source link

Leptos dep with "tracing" feature enabled leads to build error #1

Closed lpotthast closed 1 year ago

lpotthast commented 1 year ago

If a user of leptos-icons enables the "tracing" feature of Leptos in his own crate, the build will fail, as the #[component] macro used for all the icon-components cannot find the tracing crate inside leptos-icons. Adding the tracing dependency to leptos-icons, probably behind a similarly named feature should fix that error.

lpotthast commented 1 year ago

I'm working on a larger change and will submit a PR.

carloskiki commented 1 year ago

Okay great, I was not aware of this bug. I have also worked a bit on the library without pushing the changes as they do not work correctly. Most notably:

I'll await your reply before pushing my changes as they introduce bugs and you may have a better solution.

carloskiki commented 1 year ago

I have decided to push the changes as they now work. Feel free to suggest big changes, I'm very open to changing the way the library is currently structured.

carloskiki commented 1 year ago

I will close this issue as it is now resolved.