Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up[gfx] [layout] [style] Upgrade unicode-bidi to 0.3 #16779
Conversation
highfive
commented
May 9, 2017
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @glennw (or someone else) soon. |
highfive
commented
May 9, 2017
|
Heads up! This PR modifies the following files:
|
highfive
commented
May 9, 2017
c66eab7
to
ed427a7
|
|
5f6bd02
to
b67a184
|
|
|
Right, crates.io is not updated with the latest version yet. The I'll update here when it's ready. Thanks. |
|
Okay, new
I have tried manually editing I suppose an eventual Anyways, I don't know what's the right fix here. Any suggestions, @emilio, @mbrubeck? |
|
@behnam https://github.com/servo/rust-url/blob/master/idna/Cargo.toml#L22 needs to be updated, and a new version of idna needs to be published, and then Servo needs to update to the new idna version. |
For the needs of `idna`, `unicode-bidi:0.3.0` is backwards compatible, but this upgrade is needed to that `servo` can upgrade to the new version. Servo upgrade: servo/servo#16779
For the needs of `idna`, `unicode-bidi:0.3.0` is backwards compatible, but this upgrade is needed to that `servo` can upgrade to the new version. Servo upgrade: servo/servo#16779
|
|
[idna] Upgrade unicode-bidi to 0.3.0 For the needs of `idna`, `unicode-bidi:0.3.0` is backwards compatible, but this upgrade is needed to that `servo` can upgrade to the new version. Servo upgrade: servo/servo#16779 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/343) <!-- Reviewable:end -->
|
Looks good! r=mbrubeck for the code changes. This should also fix some tests, so it should get a |
|
Now good to go. FYI, this triggers the following warning:
I'm still not sure what's the expected behavior on this call-site, so the code is not updated. The new implementation of that function, |
5c4c61d
to
2523e55
|
r=mbrubeck with one minor change. |
| let runs = unicode_bidi::visual_runs(range, &levels); | ||
| // FIXME: Update to use BidiInfo::visual_runs, as this algorithm needs access to | ||
| // the original text and original BidiClass of its characters. | ||
| let runs = bidi::deprecated::visual_runs(range, &levels); |
This comment has been minimized.
This comment has been minimized.
mbrubeck
May 23, 2017
Contributor
Please add #[allow(deprecated)] above this line, to silence the warning.
|
Review status: 0 of 10 files reviewed at latest revision, 1 unresolved discussion. components/layout/inline.rs, line 313 at r1 (raw file): Previously, mbrubeck (Matt Brubeck) wrote…
Done. Comments from Reviewable |
|
@bors-servo r+ |
|
|
[gfx] [layout] [style] Upgrade unicode-bidi to 0.3 Depends on servo/unicode-bidi#27 , which upgrades `unicode-bidi` crate to `0.3.0`. Summary of changes: * Use `unicode_bidi::Level` (instead of `u8`) in all relevant places and replace magic computations with (inline) method calls to Level API. * Doing so required adding `unicode-bidi` crate dependency to two more components here: `style` and `gfx`. IMHO, totally makes sense, as replaces local integer manipulations/checks with well-tested ones already available in a common dependency. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). [N/A] <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because `unicode-bidi` has its own tests and there's no logic change in this diff. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16779) <!-- Reviewable:end -->
|
|
behnam commentedMay 9, 2017
•
edited
Depends on servo/unicode-bidi#27 , which
upgrades
unicode-bidicrate to0.3.0.Summary of changes:
Use
unicode_bidi::Level(instead ofu8) in all relevant places andreplace magic computations with (inline) method calls to Level API.
Doing so required adding
unicode-bidicrate dependency to two morecomponents here:
styleandgfx. IMHO, totally makes sense, asreplaces local integer manipulations/checks with well-tested ones
already available in a common dependency.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsunicode-bidihas its own tests and there's no logic change in this diff.This change is