Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@alerque
Copy link
Contributor

@alerque alerque commented Nov 12, 2024

I set out to make sure bumping the RustyBuzz dependency in Typst didn't break anything. It turns out hard to do without ending up with multiple versions of dependencies and conflicting types, but I think I have it all sorted now. This bump will need to be in a release to properly update the lock file, but I already have a working PoC using Git dependencies.

The catch is resvg is going to need a release too. I submitted a PR for that which is already merged, so now it's just a matter of waiting for a release.

When that is released this manifest can get a final tweak before merge to get rid of the Git dependency.

@laurmaedje
Copy link
Member

resvg has a release now

@alerque alerque marked this pull request as ready for review February 27, 2025 09:32
@alerque
Copy link
Contributor Author

alerque commented Feb 27, 2025

Bumped from the Git based test to the 0.45 tagged release.

@laurmaedje
Copy link
Member

There are some CI failures because of clippy and a deprecated upload-artifact action.

@alerque
Copy link
Contributor Author

alerque commented Mar 1, 2025

Both of those seem to be issues on the main branch HEAD, not related to this PR at all. I just had a quick look at the clippy issue in particular and it wasn't immediately obvious to me what the correct/best resolution would be. I think that should get addressed separately in a different PR, whether prior to evaluating this one or (since it is an existing warning, not a new one caused by this PR) later on its own merits.

@laurmaedje
Copy link
Member

@LaurenzV fixed it on main, so this can be rebased. (Probably clippy should also be pinned to a version like in typst/typst in the future...)

@LaurenzV
Copy link
Collaborator

LaurenzV commented Mar 3, 2025

Ugh... Looks like they broke the API of pdfium_render, maybe we keep that one at the same version?

@LaurenzV
Copy link
Collaborator

LaurenzV commented Mar 3, 2025

(I can also take care of the rest if you want, btw, just let me know.)

...so that RustyBuzz can be updated in Typst without causing duplicates.
@LaurenzV
Copy link
Collaborator

LaurenzV commented Mar 3, 2025

I will look into it 😅

@alerque
Copy link
Contributor Author

alerque commented Mar 3, 2025

Yes pdfium broke their API in a patch level release. Oops. The fix was pretty trivial, so I've addressed that.

I don't have time to look at the mass of resvg test failures right now so if you do get to it great. Otherwise I'll take another gander at it tonight. It's probably something trivial like the tooling version being embedded in the output and the expectations being outdated.

@alerque
Copy link
Contributor Author

alerque commented Mar 3, 2025

Why rollback pdfium?

@LaurenzV
Copy link
Collaborator

LaurenzV commented Mar 3, 2025

Why rollback pdfium?

I'm confused, isn't that what I wrote before? :p And it also fixes the test failures, apparently something changed in the API which makes it incompatible to the current pdfium version we are linking to.

@alerque
Copy link
Contributor Author

alerque commented Mar 3, 2025

The tests that are failing don't seem to have anything to do with the change in pdfium versions, and your rollback is not what "fixed" it—or at least at first blush I cannot confirm that it is related. I say fixed in air quotes because for some reason CI is giving you one answer and me a different answer, and my local tests are failing even on main still. Are you sure you can pass:

$ cargo test --locked --workspace

... on either main or this branch?

@LaurenzV
Copy link
Collaborator

LaurenzV commented Mar 3, 2025

Yes, I tried it on main and on this branch and it works now. As soon as I change pdfium back to 0.8.26 (and don't change anything else), it instantly breaks my tests, so I'm very sure that this is the cause.

I presume the reason it fails on main for you is that you have a different build of the C++ pdfium library, which is not compatible with 0.8.20.

@LaurenzV LaurenzV merged commit 7360819 into typst:main Mar 4, 2025
2 checks passed
@LaurenzV
Copy link
Collaborator

LaurenzV commented Mar 4, 2025

Thanks for driving this!

@laurmaedje
Copy link
Member

Shall I make a release?

@LaurenzV
Copy link
Collaborator

LaurenzV commented Mar 4, 2025

Not urgently necessary from my side, but if you want to sure!

@laurmaedje
Copy link
Member

typst/typst#5407 has been open for a while and updating rustybuzz was blocked on this, so if it's a good time for a release from your end I'd do it

@LaurenzV
Copy link
Collaborator

LaurenzV commented Mar 4, 2025

Sure then!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants