-
Notifications
You must be signed in to change notification settings - Fork 19
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
Icons #30
Icons #30
Conversation
After thinking about it a bit more: Should I just delete icons2 since it's less helpful than I thought? |
I just noticed that icons v1.11.0 is out, should I update the first commit, add a new one with the update or ignore it for now? |
I'd just ignore it for now; there are some new icons there, but we don't need to be in a rush to support them |
Yew 0.21 is out, and the icons require another impl, which is not available in 0.20. |
Upstream YewGiven than you introduce a breaking change, we might as well update this to Yew 0.21. Better one big expected change than two.
PR ChangesI swear I edited your README.md somewhere to clarify it for new users/quick start, but I can't find that anywhere. Does this ring a bell to you? 😅. New VersionI think the versioning of our crate is currently an ugly mess, see #23. I might want to not use 0.6 as the next version and instead do something massively different so it makes more sense going forward. |
I've updated this RP and added the yew update (edit: though it's incomplete, I can remove it) and also ToHtml for BI. Yes it rings a bell, it's here: alexkazik/yew-bootstrap-icons#1 and I've included many things but not all since it's now structured a bit different. Should I remove the example icons2 (and rename icons1 to icons) since it's as helpful as I initially thought? Edit: I like the |
I've tucked into your branch here, but it looks like I can't get your Compiling icons1 v0.1.0 (C:\Users\Matt\Documents\Development\Rust\yew-bootstrap\examples\icons1)
error[E0277]: `yew_bootstrap::icons::BI` doesn't implement `std::fmt::Display`
--> icons1\src\main.rs:7:44
|
7 | <h1>{"I"}<span style="color: red">{BI::HEART_FILL}</span>{BI::GEAR_FILL}</h1>
| --^^^^^^^^^^^^
| |
| `yew_bootstrap::icons::BI` cannot be formatted with the default formatter
| required by a bound introduced by this call
|
= help: the trait `std::fmt::Display` is not implemented for `yew_bootstrap::icons::BI`
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
= note: required for `yew_bootstrap::icons::BI` to implement `ToString`
= note: required for `VNode` to implement `From<yew_bootstrap::icons::BI>`
= note: required for `yew_bootstrap::icons::BI` to implement `Into<VNode>`
= note: 2 redundant requirements hidden
= note: required for `yew_bootstrap::icons::BI` to implement `Into<NodeSeq<yew_bootstrap::icons::BI, VNode>>`
error[E0277]: `yew_bootstrap::icons::BI` doesn't implement `std::fmt::Display`
--> icons1\src\main.rs:7:67
|
7 | <h1>{"I"}<span style="color: red">{BI::HEART_FILL}</span>{BI::GEAR_FILL}</h1>
| --^^^^^^^^^^^
| |
| `yew_bootstrap::icons::BI` cannot be formatted with the default formatter
| required by a bound introduced by this call
|
= help: the trait `std::fmt::Display` is not implemented for `yew_bootstrap::icons::BI`
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
= note: required for `yew_bootstrap::icons::BI` to implement `ToString`
= note: required for `VNode` to implement `From<yew_bootstrap::icons::BI>`
= note: required for `yew_bootstrap::icons::BI` to implement `Into<VNode>`
= note: 2 redundant requirements hidden
= note: required for `yew_bootstrap::icons::BI` to implement `Into<NodeSeq<yew_bootstrap::icons::BI, VNode>>`
For more information about this error, try `rustc --explain E0277`.
error: could not compile `icons1` (bin "icons1") due to 2 previous errors
2023-10-03T23:16:19.760046Z ERROR error
error from HTML pipeline
Caused by:
0: error from asset pipeline
1: error during cargo build execution
2: cargo call returned a bad status Your ~/Documents/Development/Rust/yew-bootstrap/examples/icons2> trunk serve
10/03/2023 08:19:17 PMError: error taking canonical path to [watch].ignore "static/bootstrap-icons-v1.10.5" in "\\\\?\\C:\\Users\\Matt\\Documents\\Development\\Rust\\yew-bootstrap\\examples\\icons2\\Trunk.toml"
Caused by:
The system cannot find the file specified. (os error 2)
|
I'm going to push the Yew 0.21 change immediately as 0.6.0. I am happy to jump right to 0.7.0 immediately after we do that with limited delay; I think this is best for our end-users using semantic versioning. |
This is a breaking change!
I had a different problem (couldn't build yew-0.21) first (all examples). Since the Cargo.lock file is not in the repo I can't reproduce your problem. And jonhoo also adds then to his libraries so that the CI jobs can work with it. Which is what I have adopted. I've pushed the changes on the new main. |
Please don't use force push, it messes up source trees external to your own. Let the git history be messy! |
I'm sorry - I'm used to fix it until it's right. |
Hey @alexkazik; I've made some edits. Please review my changes and correct me if necessary. Otherwise, I'd be happy to proceed with merging and releasing as |
Looks good. Though now I'm wondering if the LICENSE should be added to BIFiles as well (and thus also be in the dist of the application)? |
I think you're right; binary distributions must have the license as well. We might have to include several licenses one day, I wonder how we can do that without losing clarity about why each license is included. Folders, I guess? |
I've added a few things to a new branch, and are happy to move them here if you want:
I've added BI::empty as a shortcut for myself. I don't know if it's a good idea to support an icon and no icon in one. |
I've added a few more commits to the icons-license branch:
The first is just to remove an unbalanced backtick. Then yew is removing the ToHtml trait (already in master). Please tell me which I should add to this PR (or you can pick them yourself). |
Please do not add a change in the |
I've added the mentioned commits to this RP. The upcoming yew changes are now on icons-upcoming-yew, for later. |
The latest commits I see attached to this PR are on Oct 29, 2023; might have forgotten to push? |
Thats all right - they are that old ;-) |
Thank you for your contribution! This has been published as version 0.7.0. |
As discussed in #29, here is the MR.
This comes in two parts.
I've included your first comments (from my repo).
Thanks for the response!
I've tested it some, but another test and set of eyes would be helpful.
First part
This MR with three commits:
The last is only a logical followup of the first, it can be moved into part two (or just some time later) if you prefer.
Second part
A commit with breaking changes:
alexkazik@5368bba
Since this is a breaking change, it requires a version bump to
0.6
(currently it's0.5.18
).And that is why it will be a separate MR.
(Edit: if yew 0.21 has some breaking changes then the the version of yew-bootstrap has also to be raised to at least 0.6.)