-
Notifications
You must be signed in to change notification settings - Fork 49
feat: Dioxus 0.5 support #36
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
Conversation
|
|
|
Trying to use it with the following in dioxus-free-icons = { git = "https://github.com/dioxus-community/dioxus-free-icons", branch = "feat/dioxus-0.5", features = [
"material-design-icons-editor",
] }I'm getting hundreds of errors such as: error[E0119]: conflicting implementations of trait `IconShape` for type `md_editor_icons::MdMaterialDesignIcons`
--> /persist/cache/home/iynaix/.local/share/.cargo/git/checkouts/dioxus-free-icons-d246d2ebe6d920da/58f601c/packages/lib/src/icons/md_editor_icons.rs:1816:1
|
6 | impl IconShape for MdMaterialDesignIcons {
| ---------------------------------------- first implementation here
...
1816 | impl IconShape for MdMaterialDesignIcons {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `md_editor_icons::MdMaterialDesignIcons`
error[E0119]: conflicting implementations of trait `IconShape` for type `md_editor_icons::MdMaterialDesignIcons`
--> /persist/cache/home/iynaix/.local/share/.cargo/git/checkouts/dioxus-free-icons-d246d2ebe6d920da/58f601c/packages/lib/src/icons/md_editor_icons.rs:1837:1
|
6 | impl IconShape for MdMaterialDesignIcons {
| ---------------------------------------- first implementation here
...
1837 | impl IconShape for MdMaterialDesignIcons {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `md_editor_icons::MdMaterialDesignIcons`
error[E0119]: conflicting implementations of trait `IconShape` for type `md_editor_icons::MdMaterialDesignIcons`
--> /persist/cache/home/iynaix/.local/share/.cargo/git/checkouts/dioxus-free-icons-d246d2ebe6d920da/58f601c/packages/lib/src/icons/md_editor_icons.rs:1858:1
|
6 | impl IconShape for MdMaterialDesignIcons {
| ---------------------------------------- first implementation here
...
1858 | impl IconShape for MdMaterialDesignIcons {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `md_editor_icons::MdMaterialDesignIcons`
Some errors have detailed explanations: E0119, E0428.
For more information about an error, try `rustc --explain E0119`.
error: could not compile `dioxus-free-icons` (lib) due to 595 previous errors
warning: build failed, waiting for other jobs to finish...Am I missing something obvious here like having to run a codegen step? |
No, it looks like the codegen generated is wrong, will check asap! Thanks for the report! |
Try now! I think it should work |
|
It seems to work now (no more build errors), but I am running into #26. There's an empty path over the actual icon so it always shows up as a filled box. :( |
Will try to fix asap! |
Try now! I think I got it working 😄 I also updated it to alpha 2 |
|
It's working great now! ❤️ |
Awesome! |
packages/example/Cargo.toml
Outdated
| [dependencies] | ||
| dioxus = { version = "0.4.0" } | ||
| dioxus-web = { version = "0.4.0" } | ||
| dioxus = { version = "0.5.0-alpha.0", features = ["web"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0.5.0
Prepare support for Dioxus 0.5
Closes #26
Closes #28
Closes #14